DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IAxiBase_DG Interface

Properties

double CrossPosition
int Count

Methods

GetKnotValue
SetKnotValue

IAxiBase_DG 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_DG does not allow deleting or inserting knots into the Axial Base. To insert a new knot into the Base obtain IArrayDouble_DG interface from IAxiBase_DG and call its InsertAt method.

(See also StripTopol programming sample).

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

See also Patch Tutorial, MiniCAD Sample, Interface List.


double GetKnotValue(int knot)

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

void SetKnotValue(int knot, double z)

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 IEntity_DG interface), there should be a call for UpdateSurface method of DG Kernel control or call for Update method of IModel_DG interface.