Hello
I am trying to find a function allowing me to draw a 2D Rectangle on the KCad control. Any such method available ?
I would appreciate any suggestion
Thank you
Dino
Drawing 2D Rectangle
Re: Drawing 2D Rectangle
Hi Dino
The easiest way is probably to use overlays: http://www.dynoinsight.com/Help/Geom/View/Overlay.aspx see also the Overlay example
This kind of object by default is aligned to the screen, but its plane it can be moved/rotated
If you need a flat rectangle in 3D line strips are easy too: http://www.dynoinsight.com/Help/Geom/LineStrips.aspx
There is also a pure 2D mode as demonstrated by the TwoD sample. Select Help > Show Topic to see the relevant documentation
If you need to show it briefly, like for selection, without hassle of creating objects you could use ClientDraw event: http://www.dynoinsight.com/Help/KernCAD ... ClientDraw There are many examples in samples like Pick
Nick
The easiest way is probably to use overlays: http://www.dynoinsight.com/Help/Geom/View/Overlay.aspx see also the Overlay example
This kind of object by default is aligned to the screen, but its plane it can be moved/rotated
If you need a flat rectangle in 3D line strips are easy too: http://www.dynoinsight.com/Help/Geom/LineStrips.aspx
There is also a pure 2D mode as demonstrated by the TwoD sample. Select Help > Show Topic to see the relevant documentation
If you need to show it briefly, like for selection, without hassle of creating objects you could use ClientDraw event: http://www.dynoinsight.com/Help/KernCAD ... ClientDraw There are many examples in samples like Pick
Nick