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

B-Spline curve knots wrong order

Michael Johnson's picture
Forums: 

Hi,

I am trying to get the outer wire of a face in its NURBS form (poles, knots, etc.). However, when I convert a single edge of the wire to a B-Spline curve, its knots do not satisfy k0 <= k1 <= ... <= kn.

Here is the curve's data:

Degree = 3

Poles[0] = 19.5742170083653, 91.8797372502924
Poles[1] = 12.5036823475489, 89.2375900875663
Poles[2] = 9.37776176066169, 86.2605228619594
Poles[3] = 8.18693487041894, 80.2691750704256

Weights[0] = 1
Weights[1] = 1
Weights[2] = 1
Weights[3] = 1

Knots[0] = -1.30018192094726E-231
Knots[1] = -428.15897369347
Knots[2] = -428.15897369347
Knots[3] = -428.15897369347
Knots[4] = -428.15897369347
Knots[5] = -395.223668024742
Knots[6] = -395.223668024742
Knots[7] = -395.223668024742

Does anyone know how to fix this?

Thanks,

Mike

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.