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 Components > Interfaces > Open Cascade Technology > Geom2d > IKO_Geom_ElementarySurface
IKO_Geom_ElementarySurface

IKO_Geom_ElementarySurface Interface


Describes the common behavior of surfaces which
have a simple parametric equation in a local
coordinate system. The Geom package provides
several implementations of concrete elementary surfaces:
- the plane, and
- four simple surfaces of revolution: the cylinder, the
cone, the sphere and the torus.
An elementary surface inherits the common behavior
of Geom_Surface surfaces. Furthermore, it is located
in 3D space by a coordinate system (a gp_Ax3
object) which is also its local coordinate system.
Any elementary surface is oriented, i.e. the normal
vector is always defined, and gives the same
orientation to the surface, at any point on the surface.
In topology this property is referred to as the "outside
region of the surface". This orientation is related to
the two parametric directions of the surface.
Rotation of a surface around the "main Axis" of its
coordinate system, in the trigonometric sense given
by the "X Direction" and the "Y Direction" of the
coordinate system, defines the u parametric direction
of that elementary surface of revolution. This is the
default construction mode.
It is also possible, however, to change the orientation
of a surface by reversing one of the two parametric
directions: use the UReverse or VReverse functions
to change the orientation of the normal at any point on the surface.
Warning
The local coordinate system of an elementary surface
is not necessarily direct:
- if it is direct, the trigonometric sense defined by its
"main Direction" is the same as the trigonometric
sense defined by its two vectors "X Direction" and "Y Direction":
"main Direction" = "X Direction" ^ "Y Direction"
- if it is indirect, the two definitions of trigonometric
sense are opposite:
"main Direction" = - "X Direction" ^ "Y Direction"

Query IKO_Standard_Object from this interface to create a copy or obtain the type name

Query IKO_gp_Object from this interface to obtain or modify location and orientation

Methods

SetAxis
SetLocation
SetPosition
Axis
Location
Position
UReverse
UReversedParameter
VReverse
VReversedParameter
Continuity
IsCNu
IsCNv

HRESULT SetAxis(IKO_gp_Ax1* A1)


HRESULT SetLocation(DIPoint* Loc)


HRESULT SetPosition(IKO_gp_Ax3* A3)


HRESULT Axis(IKO_gp_Ax1** ret)


HRESULT Location(DIPoint* ret)


HRESULT Position(IKO_gp_Ax3** ret)


HRESULT UReverse()


HRESULT UReversedParameter(double U, double* ret)


HRESULT VReverse()


HRESULT VReversedParameter(double V, double* ret)


HRESULT Continuity(GeomAbs_ShapeKO* ret)


HRESULT IsCNu(int N, VARIANT_BOOL* ret)


HRESULT IsCNv(int N, VARIANT_BOOL* ret)