DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


Surface of Revolution

Surface Of Revolution geometry (SOR) is constructed by rotating a 2D segment strip in 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.

Note that 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.