KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Model Structure
Securing Models
Collapse Import/ExportImport/Export
Import and Export
Collapse Adanced Data ExchangeAdanced Data Exchange
Data Flow Sample
STL Tree
IDataContext Interface
ISTLDataContext Interface
Collapse Scene ItemsScene Items
Items
3D Text
Smart Labels
View Points
Collapse MeasurementsMeasurements
Measurements
Persistent Measurements
Grid
Collapse SectionsSections
Sections
Section Types
Collapse 2D2D
Overlays
2D Models
2D Items
Point Sets
Collapse Line and Curve SectionsLine and Curve Sections
Line Strips
Line Section
3DS Curves
Collapse Surface and Solid SectionsSurface and Solid Sections
Surfaces
Collapse Mesh SectionsMesh Sections
Mesh Section
Mesh
Surface Of Revolution
BRep 3D Objects
Collapse BRep BSpline objectsBRep BSpline objects
Bspline objects
BSpline Faces
BRep Section
Pipes
Collapse 3DS Sections3DS Sections
3D Section
Profiles
Surface Patches
Surfaces and Patch Strips
Collapse AttributesAttributes
Material
Clipping Planes
Symmetries (Arrays)
Textures
Collapse OperationsOperations
Boolean Operations
Surface Trim
Cut Surface
Collapse MovementsMovements
Movements
Kinematic Sections
Collision Detection
3D Grid
Collapse Mathematical ObjectsMathematical Objects
Pure Geometric Objects
Points and Vectors
Planes
Collapse CurvesCurves
Straight Lines
3D Circle
Ellipse
Free-Form Curves
Arc Spline Curves
Frames
Transfroms
Oriented Boxes
Collapse 2D Elements2D Elements
Geometric Elements
Arcs
Line Strips
Collapse Basics of 3D GraphicsBasics of 3D Graphics
Concepts
3D View
2D View
Viewing Volume
Birds Eye View
Viewing Plane
Perspective View
Background
Collapse AlgorithmsAlgorithms
Euclidean Shortest Path
Collapse User DataUser Data
Layers
Object User Data
Model User Data
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
Topological Modifications
Programming commands
Dynamic model restructuring
Dynamic Object Creation
Generator of 3D Sections
Generator of SOR Objects
Model class
Selection
Selection Event
External Models
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
IKO_Standard_Object
IKO_Model
IKO_TopExp_Explorer
Collapse BRepExtremaBRepExtrema
IKO_BRepExtrema_DistShapeShape
Collapse Geom2dGeom2d
IKO_Geom_CylindricalSurface
IKO_Geom_ElementarySurface
IKO_Geom2d_Circle
IKO_Geom2d_Conic
IKO_Geom2d_Curve
IKO_Geom2d_Geometry
IKO_Geom2d_Line
Collapse GeomGeom
IKO_Geom_BSplineCurve
IKO_Geom_BSplineSurface
Collapse GPGP
IKO_gp_Ax1
IKO_gp_Ax2
IKO_gp_Ax22d
IKO_gp_Ax2d
IKO_gp_Ax3
IKO_gp_Circ2d
IKO_gp_GTrsf2d
IKO_gp_Lin2d
IKO_gp_Mat2d
IKO_gp_Object
IKO_gp_Sphere
IKO_gp_Cone
IKO_gp_Torus
IKO_gp_Trsf
IKO_gp_Cylinder
IKO_gp_Pln
IKO_gp_Circ
IKO_gp_Trsf2d
Collapse GeomAPIGeomAPI
IKO_GeomAPI_PointsToBSpline
IKO_GeomAPI_Interpolate
Collapse TColStdTColStd
IKO_TColStd_Array1
IKO_TColStd_Array1OfInteger
Collapse TColgpTColgp
IKO_TColgp_Array1OfPnt
IKO_TColgp_Array1OfVec
Collapse BRepBRep
IKO_BRep_Builder
Collapse BRepBuilderAPIBRepBuilderAPI
IKO_BRep_Builder
IKO_BRepBuilderAPI_MakeWire
IKO_BRepBuilderAPI_MakeEdge
Collapse BRepOffsetAPIBRepOffsetAPI
IKO_BRepOffsetAPI_ThruSections
Collapse BRepPrimAPIBRepPrimAPI
IKO_BRepPrimAPI_MakePrism
Collapse ModModelingAlgorithmsModModelingAlgorithms
IKO_BRepGProp_Face
Collapse TopoDSTopoDS
IKO_TopoDS_Shape
IKO_TopoDS_Edge
IKO_TopoDS_Face
IKO_TopoDS_Wire
Collapse DataData
Collapse Import / ExportImport / Export
IDataConvert_KC
ICADFormat_KC
IDataContext
ISTLDataContext
IFormatVersionDataContext
Collapse User Data User Data
ILayers
IDataSource
IDataTable
IRecordSet
IDataMods
IUserData
IMatrixData
Collapse MovementMovement
IKinematicSection_KC
IMove_KC
IKinematicSet_KC
ICutEffect_KC
ISpinEffect_KC
Collapse FramesFrames
I3DObject
IFrame
IFrame2
IFrame3
IFrameEx
Collapse Oriented ObjectsOriented Objects
IObjectOriented
ISphere_KC
IBox
Collapse SectionsSections
Collapse ItemsItems
IItem
ILabel3D_KC
IDynamicScreenItem_KC
IDynamicScreenItemManager_KC
ISmartLabelManager_KC
ISection
ISection2
ISectionPointSet
ISectionLineStrip
ITextSection_KC
IPipeSection
ILineSection_KC
IObjectPosition_KC
ISticky_KC
ILabelSection_KC
IModelHealer_KC
IPointCloud_KC
IProfiledElement_KC
Collapse Mesh interfacesMesh interfaces
IMesh
IMeshTopol
ISimplex
IMeshMods
IVertex
IMeshEx
IIterator
IMeshPointKC
ISurfacePointKC
ISurfaceMetric_KC
IVertexEx_KC
IEdge_KC
ISimplexEx_KC
IMeshAlgor
IMeshShading_KC
Collapse GeneralGeneral
Collapse Collections InterfacesCollections Interfaces
IArray
IArray2
IList
IListUnkn_KC
IRelation
IArrayNum
IArray3D
IRefMap_KC
IObject_KC
ITypeBasic_KC2
IModelSearch_KC
IBitmap
IBlob
IKCContext
IKCContext2
IError_KC
IKCStack
ILineStyle_KC
IMenu_KC
IMenuItem_KC
IGlobalAPI_KC
IControlInitialisationContext_KC
IRange
IRectangleAxisAligned_KC
Collapse Topological InterfacesTopological Interfaces
IStripTopol
I3DSectionGenerator
ISORSectionGenerator 
IDIObjGenerator
Collapse Viewing InterfacesViewing Interfaces
IView
IView2
IViewPoint
IViewPointArray
ILookAt
IViewModal
ILook
ILookEx
IMeasurement_KC
IPick
ISelection_KC
IRectangleColor_KC
I2DView_KC
I2DView2_KC
I2DEditor_KC
IPrint_KC
IVirtualView
IGraphicItem
Collapse Lines And CurvesLines And Curves
ILine
ILineGeom
ILineMetr
ICurve
ICurveFreeForm
ICurveFreeFormEx
IArcSpline3DCurve
IArc
IArcEx
ICircle3D_KC2
IEllipse_KC
Collapse Symmetry InterfacesSymmetry Interfaces
ISymmetries
ISymmetry
IAxialSymmetry
Collapse Clipping plane interfacesClipping plane interfaces
IClipArray
IClipPlane
Collapse AlgorithmsAlgorithms
IEuclideanShortestPath_KC
Collapse 2D Geometry2D Geometry
ILine2D
IArc
IArcEx
IStripArcLine_KC
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Sample List
3DBugger
BoolOp
PlanarOps
Calculator
Capture
Cannon
Clip
Cloud
Collision
Collision Path
Cross View
Data Flow
Data Flow
Deploy Tutorial
DiffSurface
Direct User Access Demo
DIView
eMotion
Euclidean Shortest Path
Gear
Label
LabelEx
Layers
Light
Lines
LowDim
Make Your Move
Measure
Mesh Mods
MeshOps
Metrics
MiniCAD
Modal
Modeling Curves
Morph
Object Array
Overlay
Patch
Patchwork
Pick
Point Of View
BoolOp
Profile
Rotation
Pipes
Layers
Shape Explorer
Smart Labels
Strip Topology
Surface Metrics
Symmetry
Transform
Texture
Turbine
TwoD
User Data
View Point
WpfCAD
Zoom
Collapse DeploymentDeployment
Deploy Tutorial
DeployModule
DeployWixBasic
WixDeploy
Collapse .NET Samples.NET Samples
Collapse C# SamplesC# Samples
Patch Tutorial
MiniCAD Sample
Strip Topology Sample
DI View Sample
Modal View Sample
Modeling Curves
Label
LabelEx
Pick
Object Array
Data Flow
Profile
Cross View
Low Dim
Morph
Clip
BoolOp
Collision
Collision Path
3DBugger
Data Flow
Shape Explorer
Smart Labels
Symmetry Sample
Cannon
View Point Sample
Capture
User Data
Layers
Zoom
Collapse Visual Basic SamplesVisual Basic Samples
Patch Tutorial
DI View Sample
MiniCAD Sample
Object Array Sample
BoolOp
Data Flow
Pipes
Transform
Measure
Mesh Mods
Mesh Ops
Metrics
Morph
TwoD
eMotion
Cross View
3DBugger Tutorial
Collision
Collision Path
Light
Patchwork
Capture
Collapse WPFWPF
Clip
Mesh Ops
Measure
Lines
LowDim
WPF
Patch
Collapse Delphi SamplesDelphi Samples
3DBugger
BoolOp
Calculator
Patch Sample
Modelling Curves
MiniCAD Sample
Morph
Shape Explorer
Object Array
Metrics
Cannon
Pipes
Patchwork
Collision
Collapse C++ SamplesC++ Samples
3DBugger
BoolOp
Cannon
Capture
Cloud
Collision
Collision Path
Cross View
DI View Sample
eMotion
Gear Sample
Label
LabelEx
Light Sample
Measure
Mesh Ops
MiniCAD Sample
Modal Sample
Modeling Curves
Object Array Sample
Overlay Sample
Patch Tutorial
Pick
Point Of View
Planar Ops
Rotation Sample
Profile Sample
Shape Explorer
Smart Labels
Strip Topology Sample
Layers
Lines
LowDim
Metrics
Metrics2
Morph Sample
Patchwork
Pipes
Symmetry Sample
Texture Sample
Transform
TwoD
Turbine Sample
User Data
View Point Sample
Zoom Sample
Collapse Visual Basic SamplesVisual Basic Samples
Patch
DI View
MiniCAD
Data Flow
Cross View
Cloud
Planar Ops
Calculator
Light
Pick
Object Array
Label
Symmetry
Transform
Morph
Line Strip
Capture
Collapse Delphi SamplesDelphi Samples
KernelCAD and Delphi
3DBugger
Data Flow
BoolOp
Calculator
Cannon
Collision
Label
LabelEx
Metrics
MiniCAD
ModelingCurves
Object Array
Patch
Patchwork
Pipes
Collapse 3D Debugger3D Debugger
Creating and editing models
Editing Generic 3D Objects
Topological Commands
Model Explorer
Export / Import
Modeling Tips
3D Debugger
Collapse EditorsEditors
Form View
3D View
Collapse 2D Editors2D Editors
Crossection View
Profile View
Drum View
Collapse DialogsDialogs
3D Curve Dialog
Symmetry Collection Editor
Clip Editor
Material Editor
Surface options dialog
Collapse Modelling TutorialsModelling Tutorials
Table Tutorial
Mouse Tutorial
Collapse DeploymentDeployment
Redistribution
Registration
Deploy Module Tutorial
WixDeploy Tutorial
DeployWixBasic
Deploy Tutorial
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Data Types
DI Types

Basic data types

Note: All elements of data structures below declared with struct keyword must be initialised before any use. Failing to do so may lead to unpredictable behaiviour as structures do not have a constructor, so have random values by default
AssociationPair
DI3DSectInfo
E3DBoolParams
EBooleanOperation
EBoolOpContext
DIPoint
KC2D
Color_KC
DISectInfo
DIVect
E2DViewGeometryType
ECADFormat
ECoordinatesType
EDataType
EDIEvent
EEditorEvent_KC
EElemTypeKC
EDrawPrimitive
EEnableBit
EItemType
EModifResult
EObjectType
EPatchType
ESegmentType
ESymmType
EViewType
E3DViewProjectionType
KCBitmap
KCRange
KCBox
MetrDistContext
MetrIsCloserThanContext
PairInt
PathDetectorContext
RenderContext
KCN3 Structure
EPageOrientation
EPaperSize
PrintContext_KC
EMenuCommand_KC
EPointInSimplexLocation
EMeshModsAction
EDwgVersion
EDXFVersion
EMeshRefineType
ESatVersion
EStringSource

3D vector

struct DIVect
                            double v[3];
};

DIVect is used to represent a 3D vector.


3D point

struct DIPoint { 
                            double x[3];
};

DIPont is a 3D point.


2D Point or Vector

struct KC2D { 
                            double x[2];
};


Color_KC

struct Color_KC_ {
                            float red;
                            float green;
                            float blue;
} Color_KC;


KCRange Structure

typedef struct KCRange_ {
        double min;
        double max;
            } KCRange;


KCBox Srtucture

typedef struct KCBox_ {
        KCRange range[3];
            } KCBox;


KCN3 Srtucture

typedef struct KCN3_ {
        int n[3];
            } KCN3;


PairInt Structure

typedef struct PairInt_ {
        int x;
        int y
            } PairInt;


ECoordinatesType enumeration

 typedef enum ECoordinatesType_ {
                eCoordTypeCartesian = 1,
                eCoordTypePolar = 2,
            } ECoordinatesType;


EPatchType  enumeration

typedef enum EPatchType_ {
        ePatchTypeCurvature = 1,
        ePatchTypeRadius = 2,
        } EPatchType;

The enumeration used for selection between Standard (Curvature) and Radial Arc Patch types. (See Radial Patches


Segment Type enumeration

enum ESegmentType {  eSegmTypeLine = 1,  eSegmTypeArc = 2  }

Segment Type enumeration may be expanded in future versions of software by adding new types.


DISectInfo Structure

typedef struct DISectInfo_ {

bool                     closed;
int                        segments;
double                 radius;
ESegmentType    segmentType;
bool                     regularJoints
} DISectInfo;

DISectInfo structure is used to specify common parameters of a new object in DInsight model. 

closed  - If true surface strip in the new object will be closed.

 segments - specifies number of surface segments in the strip, which constitutes the surface of the Generic 3D object  (See Patch Strips and Surfaces ). In case of an SOR this is the number of 2D segments in the generating line strip.

radius - specifies approximate maximal dimension of the object. In case of a short cylinder it will be equal to the radius of the cyliner.

segmentType - if segmentType is eSegmTypeArc (see above) than all surface patches in the object will be of arc type (See Patch Types), otherwise all patches will be linear.

regularJoints - if true all surface joints will be rendered smooth in 3D.


DI3DSectInfo Structure

typedef struct DI3DSectInfo_ {

        DISectInfo                 sectInfo;
        int                             knots;
        ESegmentType         axialSegmType;
        ECoordinatesType     edgeCoordType;
        EPatchType                 patchType
} DI3DSectInfo;

DISectInfo structure contains parameters for creation of a new Generic 3D Section object.

sectInfo - structure which contains parameters common to all types of objects (See above).

knots - Number of knots in the base.

axialSegmType - if true all edges in the object will be curved lines and straight lines otherwise.

edgeCoordType - a member of ECoordinatesType enumeration. If it is set to eCoordTypePolar than all 3D lines representing edges of the object will be defined in Cylindrical coordinates. Otherwise standard Cartesian coordinates will be used.

patchType - if patchType is ePatchTypeRadius (See EPatchType enumeration) than all arc patches in the object will be of radial type (See Radial Patches). Otherwise all arc patches in the object will be standard.


RenderContext Structure

Used to pass additional parameters to IGraphicItem.DrawEx method.

typedef struct RenderContext_
{
                        VARIANT_BOOL surface; // If false wire frame will be rendered. Default: true
                        VARIANT_BOOL normals; // Draw normals? Default: false

} RenderContext;


KCSceneItemInfo Structure

Used to pass search criteria to IModel2.FindItem method.

typedef struct KCSceneItemInfo_
{
    KC3State hasChildren;
    KC3State hasParent;
    KC3State isEmpty;
    BSTR name;
    KC3State hasLocalFrame;
    int hashItemStartAfter;

} KCSceneItemInfo;


Draw Primitive Enumeration

typedef enum EDrawPrimitive_ {
    ePoints,
    eLines,
    eLineStrip,
    eLineLoop,
    eTriangles,
    eTriangleStrip,
    eTriangleFan,
    eQuads, 
    eQuadStrip, 
    ePolygon,

                    } EDrawPrimitive;


KC3State Enumeration

typedef enum KC3State_ {
                                            kcUnknown = -1, 
                                            kcFalse = 0, 
                                            kcTrue = 1, 
} KC3State;


Data Type Enumeration

typedef enum EDataType_ {
                                            eDataTypeNULL, 
                                            eDataTypeDouble, 
                                            eDataTypeSingle, 
                                            eDataTypeLong, 
                                            eDataTypeShort, 
                                            eDataTypeString
                    } EDataType;


EKCType Enumeration

typedef enum EKCType_ {
                                            eKCTypeNULL,
                                            eKCTypeDouble,
                                            eKCTypeSingle,                // (32 bit floating)
                                            eKCTypeLong,                  // 32 bit signed integer
                                            eKCTypeShort,                  // 16 bit signed integer
                                            eKCTypeString,
                                            eKCTypeBool,
                                            eKCTypeIUnknown,
                                            eKCTypeColor,
                       } EKCType;


EDictionaryType_KC Enumeration

Enumerates types in dictionaries

typedef enum EDictionaryType_KC_ {
                                            eKDUnknown,            // Any type (or unknown)
                                            eKDInt,                        / 32 bit signed integer
                                            eKDDouble,                // (64 bit floating)
                                            eKDBool,                  // Boolean
                                            eKDString,                  // String
                                            eKDVariant,                    // VARIANT. Interpreted as Object in many environments
                                            eKDInterface,                  // Interface
                                            } EDictionaryType_KC;


EEnableBit Enumeration

typedef enum EEnableBit_ {
                                            eEnablePan = 1,
                                            eEnableZoom = 2,
                                            eEnableRotate = 4,
                                            eEnableHighLightPoint = 128,
                                            eEnableHighLightLine = 256,
                                            eEnableHighLightSurface = 512,
                                            eEnableTransparency = 1024,
                                            eEnablePerspectiveProjection = 2048,
                                            eEnableNormals = 4096,
} EEnableBit;

EEnableBit enumeration can be used in calls to IView2.Enable() and IView2.GetEnableFlag() methods.

EEnableBit enumeration may be expanded in future versions of software by adding new types.


ESymmType Enumeration

typedef enum ESymmType_ {
    eSymmTypeNULL,
    eSymmTypeAxial, 
    eSymmTypeMirror, 
    eSymmTypeTranslation, 
                            } ESymmType;


EElemTypeKC Enumeration

typedef enum EElemTypeKC_ {
                                            eElTypeVertex,
                                            eElTypeSegment,
                                            eElTypeSimplex,
                                            eElTypeSection,       
                                } EElemTypeKC;


EDIEvent Enumeration

typedef enum EDIEvent_ {
                                            eEventMouseHover,
                                            eEventClientDraw,
                                            eEventCollision,
                                            eEventUICommand,        //Context menu item selected
                                            eEventSelection,
                                            eEventExplorerSelection,    //Selection changed in Model Explorer
                                            eEvent2DEditor,                // Events from overlay or other 2D editor. The param0 parameter of KernelCADEvent is an integer with value one of EEditorEvent_KC below
                                            eEventMouseSimple,         //For RequestEvent. All button down/up etc apart from intesive mouse move
                                            eEventMouseMove,
                                            eEventMouseLButtonDown,
                                            eEventMouseRButtonDown,
                                            eEventModelStructureChanged, //Object hierarchy has changed
                                            eEventMouseRButtonDown,
                                            eEventMouseRButtonMove,
                                            eEventMouseRButtonUp,
                                            eEventCount,

} EDIEvent;

EEditorEvent_KC Enumeration

typedef enum EEditorEvent_KC_ {
                                            eEditEventUnknown,
                                            eEditEventActivated,                    // The editor has been activated
                                            eEditEventModelStructureChanged,    // A new item aded to the 2D model or deleted
                                            eEditEventItemStructureChanged,        // Number of elements in an item has chanded. New element added or deleted
                                            eEditEventClosing,                    // The editor is about to be closed
} EEditorEvent_KC;


EItemType Enumeration

typedef enum EItemType_ {
    eItemTypeSection,
    eItemTypeLabel, 
    eItemTypeViewPoint, 
            } EItemType;

EPointLocation2D Enumeration

typedef enum EItemType_ {
    ePointLocation2DUnknown,
    ePointLocation2DInterval, // On a segment in open interval 
    ePointLocation2DPoint, // At a point 
    ePointLocation2DInside, // Inside of a closed strip or on the left of an infinitely long strip obtained by extending end lines as rays
    ePointLocation2DOutsnside, // Outside of a closed strip or on the right of an infinitely long strip obtained by extending end lines as rays
            } EPointLocation2D;


EModelViewFrame Enumeration

typedef enum EModelViewFrame_ {
            eModelViewFrameGlobal,
            eModelViewFrameEye
                } EModelViewFrame;
 


EModelEntity Enumeration

typedef enum EModelEntity_ {
            eModelEntityUnknown,
            eModelEntityObject,
            eModelEntityModel,
                    } EModelEntity;

It is recommended to use mnemonic members of this enumeration as opposed to hard coded values as it may be expanded in future releases


ESTLAnalysis Enumeration

typedef enum ESTLAnalysis_ {
        eStlAnalysAuto,
        eStlAnalysPerform,
        eStlAnalysSkip,
                    } ESTLAnalysis;


EViewReset Enumeration

typedef enum EViewReset_ {
        eViewResetAll,
        eViewResetVolume,
                    } EViewReset;

This enumeration is likely to be expanded in future releases


EModifResult Enumeration

typedef enum EModifResult_ {
    eModifResInvalid = -1,
    eModifResNoChange = 0,
    eModifResModified = 1
                    } EModifResult;


ECADFormatEnumeration

typedef enum ECADFormat_ {
        eCADFormatGLM,
        eCADFormatVRML,
        eCADFormatSTL,
        eCADFormatAutoCADDXF,
        eCADFormatAutoCADDWG,
        eCADFormatSAT,
                    } ECADFormat;

Enumerates CAD formats supported by the software. This enumeration will be expanded in future releases


EPageOrientation Enumeration

typedef enum EPageOrientation_ {
            eOrientAuto,
            eOrientPortrait,
            eOrientLandscape,
                    } EPageOrientation;


EPaperSize Enumeration

typedef enum EPaperSize_ {
                ePaperSizeUnknown,
                ePaperSizeA4,
                ePaperSizeA3,
                    } EPaperSize;


PrintContext_KC Structure

typedef struct PrintContext_KC_ {
            VARIANT_BOOL validOrientation;
            EPageOrientation orientation;
            VARIANT_BOOL validPaperSize;
            EPaperSize paperSize;
            VARIANT_BOOL validMargin;
            float marginHorizontal;
            float marginVertical;
            VARIANT_BOOL validScale;
            float scale;
                    } PrintContext_KC;


KCBitmap Structure

typedef struct KCBitmap_ {
        int type;
        int width;
        int height;
        int widthBytes;
        short planes;
        short bitsPixel;
                    } KCBitmap;


EViewTypeEnumeration

typedef enum EViewType_ {
    eViewType2D = 2,
    eViewType3D = 3,
                    } EViewType


E3DViewProjectionTypeEnumeration

typedef enum E3DViewProjectionType {
       e3DViewProjectionTypeOrthographic,
       e3DViewProjectionTypePerspective
                    } E3DViewProjectionType


E2DViewGeometryType Enumeration

typedef enum E2DViewGeometryType_ {
                          e2DViewGeometryTypeProjection,
                          e2DViewGeometryTypeIntersection,
                        } E2DViewGeometryType;


PathDetectorContext Structure

typedef struct PathDetectorContext_   {
                    VARIANT_BOOL decreasingStart;
                    double minDistToler;
                    double precision;
                    } PathDetectorContext;
 

PathDetectorContext structure is used in IKCPathCollisionDetector.Detect method to specify additional parameters for the operation.


EBooleanOperation Enumeration

typedef enum EBooleanOperation_ {
                eBoolOpUnknown = 0,
                eBoolOpSubtract = 1,
                eBoolOpUnion = 2,
                eBoolOpInters = 3,
                eBoolOpClip = 4,
                    } EBooleanOperation;


EBoolOpContext Structure

typedef struct EBoolOpContext_ {
            EBooleanOperation operation;                    // The operation
            VARIANT_BOOL execute;                       // If false only intersection curve is calculated
            VARIANT_BOOL intersectionLine;           // Calculate intersection curve(s) of two surfaces
            VARIANT_BOOL needEdges;                  // If true edges array is calculated (contains information about normals along intersection)
            IUnknown* edges;                                      // Vertices of intersection arranged in linked loops. Actual type IArray. elements are IArray of IVertex one per loop
            VARIANT_BOOL separateComponents;   // If the first object becomes divided into several isolated pieces, separate the objects and make it a group.
                    } EBoolOpContext;


EMenuCommand_KCEnumeration

typedef enum EMenuCommand_KC_ {

eMenuCommandSaveAs,
eMenuCommandSeparator1,
eMenuCommandFullScreen,
eMenuCommandSeparator3,
eMenuCommandSurface,
eMenuCommandWireFrame,
eMenuCommandSeparator6,
eMenuCommandGlobalFrame,
eMenuCommandSeparator8,
eMenuCommandHelp,
eMenuCommandAbout,
eMenuCommandSeparator9,
eMenuCommandCustomItem0,
eMenuCommandCustomItem1,
eMenuCommandCustomItem2,
eMenuCommandCustomItem3,
eMenuCommandCustomItem4,
} EMenuCommand_KC;


EMeshModsAction Enumeration

typedef enum EMeshModsAction_ {
eMeshActionNone = 0,
eMeshActionNormalsFastApprox = 1,
eMeshActionNormalsMedium = 2,
eMeshActionNormalsFull = 4,
eMeshActionNormalsAuto = 8,
} EMeshModsAction;

EDwgVersion Enumeration

typedef enum EDwgVersion_
{
    kc_vAC14 = 21, // R14 release
    kc_vAC15 = 23, // R15 (2000) release
    kc_vAC18 = 25, // R18 (2004) release
    kc_vAC21 = 27, // R21 (2007) release
    kc_vAC24 = 29, // R24 (2010) release
    kc_vAC27 = 31, // R27 (2013) release
} EDwgVersion;

EDXFVersion Enumeration

typedef enum EDXFVersion_ {
    kc_vACdxf12 = 16, // R11 and R12
    kc_vACdxf15 = 23, // R15 (2000) release
    kc_vACdxf18 = 25, // R18 (2004) release
    kc_vACdxf21 = 27, // R21 (2007) release
    kc_vACdxf24 = 29, // R24 (2010) release
    kc_vACdxf27 = 31, // R27 (2013) release
} EDXFVersion;

ESatVersion Enumeration

typedef enum ESatVersion_ {
    kc_ASCII_106 = 0x01000000|106,
    kc_ASCII_400 = 0x01000000|400,
    kc_ASCII_500 = 0x01000000|500,
    kc_ASCII_600 = 0x01000000|600,
    kc_ASCII_700 = 0x01000000|700,
    kc_ASCII_20800 = 0x01000000|20800,
    kc_ASCII_21200 = 0x01000000|21200,
    kc_ASCII_21500 = 0x01000000|21500,
} ESatVersion;

EPointInSimplexLocation Enumeration

typedef enum EPointInSimplexLocation_ {
    eSimplexPointLocationUnknown,
    eSimplexPointLocationInside,
    eSimplexPointLocationEdge,
    eSimplexPointLocationVertex,
    eSimplexPointLocationOutside,
    eSimplexPointLocationNotInPlane,
} EPointInSimplexLocation;

TopAbs_ShapeEnumKO  enumeration

typedef enum TopAbs_ShapeEnumKO_ {
        eShTop_COMPOUND ,
        eShTop_COMPSOLID,
        eShTop_SOLID ,
        eShTop_SHELL,
        eShTop_FACE,
        eShTop_WIRE,
        eShTop_EDGE,
        eShTop_VERTEX,
        eShTop_SHAPE,
        eShTop_UNKNOWN,
        } TopAbs_ShapeEnumKO;

Enumerates topological types of geometry of bspline brep sections


EStringSource Enumeration

typedef enum EStringSource_ {
    eStringSourceUnknown,
    eStringSourceObjectName,
    eStringSourceLayerName,
    eStringSourceTemplate,
} EStringSource;

EMeshRefineType Enumeration

typedef enum EMeshRefineType_ {
    eMeshRefineTypeFlat,
    eMeshRefineTypeButterfly,
    eMeshRefineTypeLoop,
    eMeshRefineTypeCatmull,
    eMeshRefineTypeONE_QUAD_X_EDGE,
} EMeshRefineType;