DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Expand DG Kernel ControlsDG Kernel Controls
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > Deprecated > Deprecated Geometry > Surface Of Revolution Go to DGKC docs Search Documentation


Surface of Revolution

Surface Of Revolution geometry (SOR) is constructed by rotating a 2D arc/line curve in the plane of x and z coordinates (Generatrix or Profile Curve) around z axis.

To modify an SOR object programmatically query IStrip from ISection of the object. Elements of the strip can be either straight or curved segments. Straight segments have no parameters. They are modified by changing its end joints, obtained  form the IStrip. Curved segments have single parameter - curvature, which is either 0 or 1.0/Radius. Joints of an SOR strip are 2D points and hence have two parameters. To see a sample of the above manipulations open Pipes.mdg or Sphere.mdg in MiniCAD sample and step though the source code in a debugger.

Structure of the generatrix strip can be modified (elements added or deleted etc) with the help of IStripTopol nterface queried form the IStrip.

In case of a cylinder, cone or any other SOR with an open generatrix strip the discs at the top or bottom of the object can be removed or added with the help of IBoundary queried form ISection of the object, thus rendering the object either as surface or solid.

When the generating strip consists of a single point the object will be an isolated circumference in x and y plane of the local axes.  When the strip has no elements, graphically the object will be represented only by the local frame of axes, if the relevant option is selected.

Entities with SOR geometry can be created using IObjectGenerator_DG.Create("IEntity_DG") > IEntity_DG > IEntity_DG.SetGeometryType("SOR")

SOR entities can also be constructed via COM Program or Class ID. It can be useful when DK Kernel is used as a background engine or in a command line application without a DGK control window. Details.