DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


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