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 > IAxiBase
IAxiBase Interface

IAxiBase Interface

GetCrossPosition
SetCrossPosition
GetCount
GetKnotValue
SetKnotValue

IAxiBase interface allows modification of array of Base Knots and the current Cross-section position (current z-axis position) in the object. Changing of a knot position will make the object stretched or contracted. 

Note that IAxiBase does not allow deleting or inserting knots into the Axial Base. To insert a new knot into the Base obtain IArray interface from IAxiBase and call its InsertAt method (See also StripTopol programming sample).

Obtaining IArray managing Axial Base knots via ISection->IAxiBase->IArray is a context-dependent query. It means that between two steps ISection->IAxiBase and IAxiBase->IArray there must not be any other queries from the ISection interface.

See also Patch Tutorial, MiniCAD Sample, Interface List.


HRESULT GetCrossPosition(double *pz)

Parameters

pz - [out] pointer to a double variable to hold the output.

Return Values

S_OK in case of success

DISP_E_PARAMNOTOPTIONAL - if pz is NULL.

Remarks

Returns current cross position of the object.

 

HRESULT SetCrossPosition(double z)

Parameters

z - [in] new cross position.

Return Values

S_OK  - in case of success.
 
DISP_E_PARAMNOTOPTIONAL - if z value is outside of the current z-range of the model.
 
Remarks
 
Use this function to set current cross position, so that following parameters modifications will be made in cross plane at z position.


HRESULT GetCount(int *pnCount)

Parameters

pnCount - [out] pointer to the variable which will receive number of axial knots in the object.

Return Values

S_OK in case of success.

Remarks

Call to determine number of knots in the base.


HRESULT GetKnotValue(int knot, double *pz)

Parameters

knot - [in] index of the knot to retrieve.

pz - [out] pointer to the double variable, which will hold the returned knot position.

Return Values

S_OK in case of success

TYPE_E_ELEMENTNOTFOUND - in case knot is out of the valid range.

DISP_E_PARAMNOTOPTIONAL - pz is NULL.

Remarks
 
Call this method to obtain position of a particular knot in the base.
 

HRESULT SetKnotValue(int knot, double z)

Parameters

knot - [in] index of the knot to set.

z - [in] new position of the knot

Return Values

S_OK in case of success

TYPE_E_ELEMENTNOTFOUND - in case knot is out range.

DI_E_INVALIDGEOMETRY - when new position is out of the valid range. See remarks.

Remarks
 
Call this method to set position of a particular knot in the base. To be valid, z must be such that resulting array is increasing and none of the knot values coincide with each other. Between two calls for this method, which implemented by the same object (it was obtained from the same ISection interface), there should be a call for UpdateSurface method of KernelCAD control or call for Update method of IModel interface.