Possible to read out STEP-files with Open Cascade?

Hello,

I´m new to Open Cascade and wonder if it is possible to read out STEP-files maybe by using one of the Samples. Furthermore I´d like to know if Open Cascade provides an opportunity to triangulate 3D-Models.

It would be great to get help. My fingers hurt cause of searching with Google excessively.

Thanks for any help!

Best regards,
Patrick

Marmeladen-Joseph's picture

Oh, I forgot.

I know there is a Sample in the "Standard\MFC" folder, where it is possible to triangulate a given mesh. Is there a possibility to apply this functionality to one of my own STEP-files easily?

Greets,
Patrick

Patrik Mueller's picture

Hi Patrick,

you can use STEP files and triangulate them. Take a look at the Import/Export sample for reading (and displaying if wished).
If you just want to triangulate them you have to use the TopExp_Explorer to iterate over the shapes to triangulate the faces.

Greets,

Patrik

Marmeladen-Joseph's picture

Thanks for your quick reply!

So I´m getting this right? I´ll have to write a C++ application (for instance using Visual Studio 2005 + OpenCascade Library) for triangulation?
I´ve never written any line of C++ Code. Any chance to use Java, C# or maybe Haskell or Prolog instead ;) ?

Till now I´m a little bit of a dumb-ass concerning Open Cascade and its functionality...

Regards,
Patrick

Patrik Mueller's picture

Hi,

there's an Java interface for OCC - but don't ask me about it!
Perhaps you should take a look at JCAE (http://jcae.sourceforge.net)...

Greets,

Patrik