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 > GeomAPI > IKO_GeomAPI_PointsToBSpline
IKO_GeomAPI_PointsToBSpline

IKO_GeomAPI_PointsToBSpline Interface

Used to approximate a BsplineCurve passing through an array of points, with a given Continuity. Describes functions for building a 3D BSpline curve which approximates a set of points. A PointsToBSpline object provides a framework for: defining the data of the BSpline curve to be built, implementing the approximation algorithm, and consulting the results.

Init
Init2
Init3
Init4
Curve

HRESULT Init(IKO_TColgp_Array1OfPnt* Points, int DegMin, int DegMax, int GeomAbs_Shape_continuity, double Tol3D)

Approximate a BSpline Curve passing through an array of Point. The resulting BSpline will have the following properties: 1- his degree will be in the range [Degmin,Degmax] 2- his continuity will be at least 3- the distance from the point to the BSpline will be lower to Tol3D 


HRESULT Init2(IKO_TColgp_Array1OfPnt* Points, int Approx_ParametrizationType_ParType, int DegMin, int DegMax, int GeomAbs_Shape_continuity, double Tol3D)

Approximate a BSpline Curve passing through an array of Point. The resulting BSpline will have the following properties: 1- his degree will be in the range [Degmin,Degmax] 2- his continuity will be at least 3- the distance from the point to the BSpline will be lower to Tol3D


HRESULT Init3(IKO_TColgp_Array1OfPnt* Points, IKO_TColStd_Array1OfReal* Parameters, int DegMin, int DegMax, int GeomAbs_Shape_continuity, double Tol3D)

Approximate a BSpline Curve passing through an array of Point, which parameters are given by the array . The resulting BSpline will have the following properties: 1- his degree will be in the range [Degmin,Degmax] 2- his continuity will be at least 3- the distance from the point to the BSpline will be lower to Tol3D

HRESULT Init4(IKO_TColgp_Array1OfPnt* Points, double Weight1, double Weight2, double Weight3, int DegMax, int GeomAbs_Shape_continuity, double Tol3D)

Approximate a BSpline Curve passing through an array of Point using variational smoothing algorithm, which tries to minimize additional criterium: Weight1*CurveLength + Weight2*Curvature + Weight3*Torsion


HRESULT Curve(IKO_Geom_BSplineCurve** curve)

Returns the computed BSpline curve. Raises StdFail_NotDone if the curve is not built