[XM/V8i MDL] NURBS representation of B-Spline curve

I am not an expert in this area, but I need to convert the MSBsplineCurve into the form as in The NURBS Book by Les Piegl and Wayne Tiller is presented. 
To be honest, I do not understand all background, I only need data that I must export :)

Is it possible using MDL (or C++ API)?
Any advice?


Thanks in advance.

Parents
  • It's certainly possible, MSBSplineCurve is a NURBS curve. I didn't see anything in the link you provided that showed the standard form of their curve, but it will be analogous to MSBSplineCurve's poles, knots, weights.



  • I have it tried and results are different.

    Issue is that I need a curve with specific settings.

    I will investigate it more and write here my results.

    But I am sure, that it is not 1 : 1 or I am passing something wrong.

    Mainly seems that MDL has a more complex B-Splines and also supports rational curves.

    What I perhqaps need is to convert rational one to non-rational. Or something like that.

    As I wrote... I will try to provide more information tomorrow...

    Thanks for helping.  

    Does mdlBspline_make2CurvesCompatible  modify both curves?

    Is there a way to convert between curve settings?

    What is the MDL equivalent to Rebuild method of BSplineCurve object in MVBA?

  • Unknown said:
    But I am sure, that it is not 1 : 1 or I am passing something wrong.

    This is highly likely, but the concepts are comparable/directly mappable. After all our MSBSplineCurve structure gets converted to Iges/Step/Parasolid NURBS formats.

    Unknown said:
    What I perhqaps need is to convert rational one to non-rational.

    No, rational curves are definitely supported, in the link there's even a snippet where it's checking weights.

    Unknown said:
    Does mdlBspline_make2CurvesCompatible  modify both curves?

    Yes, it does.

    Unknown said:
    Is there a way to convert between curve settings?

    What settings? Someone else will have to chime in with regards to MVBA...

    -B



Reply
  • Unknown said:
    But I am sure, that it is not 1 : 1 or I am passing something wrong.

    This is highly likely, but the concepts are comparable/directly mappable. After all our MSBSplineCurve structure gets converted to Iges/Step/Parasolid NURBS formats.

    Unknown said:
    What I perhqaps need is to convert rational one to non-rational.

    No, rational curves are definitely supported, in the link there's even a snippet where it's checking weights.

    Unknown said:
    Does mdlBspline_make2CurvesCompatible  modify both curves?

    Yes, it does.

    Unknown said:
    Is there a way to convert between curve settings?

    What settings? Someone else will have to chime in with regards to MVBA...

    -B



Children
No Data