Home Page > KernelCAD Models > Mathematical Objects > Pure Geometric Objects
Pure Geometric Objects
Mathematical Objects
Mathematical or Pure Geometric Objects, are
dynamically created objects, which are not part of the model. but rather
used for geometric calculations. Mathematical Objects do not normally implement
ISection interface.
Mathematical Objects can be created via
Create or
Create2 method of
IDIObjectGenerator with
parameter eType set to a
member of
EObjectType enumeration.
Examples of Mathematical Objects are: Frame,
Free-Form 3D Curves,
Splined 3D Curves, and simpler
objects like Oriented Box,
Plane and
arcs
Although Mathematical Objects are not part of the model they still can
be rendered in the scene by using
IGraphicItem
interface queried from the object inside of handler of
ClientDraw
event. Note that not all object implement the interface. In that case
normally it is quite simple to render them using IDraw,
IDraw2
and IDrawUtil
interfaces.
See also: Calculator sample
|