Nurbs to iges

Dear community

I'm new to open cascade so first... hello.

my problem: I have a nurbs surface in my existing programm (MFC C++ V8) and just want to have a iges file from my surface.

So i wanna use OCC only to "transform" my control points, u params, etc. TO an iges file which i could give to CAD systems.

Please accept my best thanks for helping me ;-)

kind regards

Mathias

Matthias Teich's picture

Hi,

What is your question exactely?
I guess you should take a look at the classes IGESControl_Writer and Geom_BSplineSurface.
Do you have the NURB surface as a datafile?

Best Regards,
Matthias

Mathias Neyer's picture

What is your question exactely?
How can i create a small application (most likley a .lib) which receive the NURBS data (control points (doubles), u/v knots (doubles), u/v degree (int), weights (double)) of my existing application, and with help of the data create a iges file, because i wanna use IGESControl_Writer (if this is the thing that i need) to write my application data to an iges file.

I guess you should take a look at the classes IGESControl_Writer and Geom_BSplineSurface.
thanks i searched for information like that

Mathias Neyer's picture

PS: my application isn't based on OCC. i only wanna use it as file writer!