KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Models > Sections > Surface and Solid Sections > Surface Of Revolution
SOR

Surface of Revolution

A Surface Of Revolution object (SOR) is constructed by rotating a 2D segment strip in plane of x and z coordinates (Generatrix or Profile Curve) around z axis.

SOR object can be created by the New Object Editor of 3D Debugger (Model >New Object, Solid\"Rotational Symmetric" or Surface\"Surface Of Revolution" sub trees). Pro controls can create SOR objects using SectSORGenerator (See Dynamic object creation ).

When a SOR is the current object (See Selecting Current Object ) it can be modified by editing the Profile Curve in a 2D View (See 2D Editors). 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.glm or Sphere.glm 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.  

It is possible to reduce the revolution to a range of angles. In Modeling Studio set the SOR section as current. Open "Current Object" >Options dialog and press the "More.." button which will be enabled for SOR object type. Programmatically to reduce, for example, an SOR surface to a quarter between angles 90 and 180 degrees, query IRange interface from ISection of the SOR and call IRange.Set(90, 180). Note that the range is specified in degrees, not radians.

For example the above allows creation of a slice of a torus, which joined to together possibly with cylinders or cones allows modeling of complex pipes.