The next development steps that will be made at NaroCAD are the following:
- analyze the performance of a C# wrapper and see if there is some performance penalty compared to a C++/CLI code. Think also if this penalty can be solved by a mix of C# and C++/CLI (these optimizations will be saved for a later stage of the project, now will just consider the possibility),
- ability to select any face of any shape to be used to draw 2D shapes on it,
- adding of a tree view that shows the shapes drawn on the system, this view also allows changing the shape parameters,
- adding more base shapes like ellipse, lines, points,
- implement an information display mechanism (coordinates, sizes in a measurement unit) that allows also changing these properties,
- implement the Undo/Redo mechanism for all the operations made by the user.
Thursday, April 24, 2008
Added code that loads BRep shapes. It took almost two hours to make the code, time mostly spent on C++/CLI coding not on OpenCascade coding.
The shape is loaded from the menu that appears after a new document is created: File->Import->BRep.
Friday, April 18, 2008
Succeeded to draw a rectangle using the sketcher and display it in the 3D working space. The code needs cleanup, the drawing techniques are probably not the best but I am super happy that finally something works after many hours of struggling.
Sunday, April 13, 2008
Wednesday, April 9, 2008
The 2D drawing tool allows drawing with snap (if the grids are enabled) or free drawing (if grids are disabled).
Screen coordinates are properly converted to space coordinates like the following:
- in snapping mode the Hit() method directly converts screen coordinates to grid space coordinates,
- when snapping is disabled the Convert() method is used to calculate the space coordinates to be passed to the shape to be drawn.