Home 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.
|