For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

GeomAPI_PointsToBSpline class

Anonymous's picture


I use the constructor GeomAPI_PointsToBSpline and the curve function to build a B-spline curve. Is there any check if I have an array of Points (gp_Pnt) have the same coordinates for not creating a curve ?

This is what I get when I tried to create one using 3 points have value 0 0 5.

*********** Dump of bc ************* BSplineCurve Degree 3, 5 Poles, 3 Knots Poles :

1 : 0, 0, 5

2 : nan, nan, nan

3 : nan, nan, nan

4 : nan, nan, nan

5 : 0, 0, 5 Knots :

1 : nan 4

2 : nan 1

3 : nan 4

PLease clarify ?

- Prasad

Mikael Aronsson's picture

Hi !

Did all 3 points have the values 0 0 5 ?

If that is the case then I would guess that's the reason for getting the incorrect spline.

All points must have unique coordinates (unless the code handles this in some way internally).

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.