Personal tools
You are here: Home Forum How to use Salome? Extraction c + +

Extraction c + +

Up to How to use Salome?

Extraction c + +

Posted by Mario Arturo at May 29. 2012

Hello, I wonder if there is any way to get the proper files salome geometries designed for this in C + + code.

Since I only see that I can get it as iges, hdf ... etc.

But I need that I return in C + +.

Re: Extraction c + +

Posted by Saint Michael at May 31. 2012

Hi Mario

Could you describe your need in more detail, it's not clear enough (for me).

St.Michael

Re: Extraction c + +

Posted by Mario Arturo at May 31. 2012
Sure, we see that we can keep our files salome onHdf and we export themIges .. etc.

We can also get it from python code.

But I particularly like me to remove my files my geometries in c + + code and can not bedone in Salome. regards

 

Re: Extraction c + +

Posted by Saint Michael at June 01. 2012

Do I understand right that you want to dump a SALOME study into a C++ code similar to how it can be dumped into a Python script?

St.Michael

Re: Extraction c + +

Posted by Mario Arturo at June 04. 2012

in fact, that's just what I do ...

Re: Extraction c + +

Posted by Saint Michael at June 06. 2012

Hi Mario

SALOME has no such a feature but you can get what you need by manual "translating" a Python dump into C++ code. A dictionary for this "translation" is GEOM/bin/salome/geompyDC.py file from SALOME installation that defines python functions called from the Python dump script. Examining these functions you can learn what C++ functions to call instead of Python functions.

St.Michael

Powered by Ploneboard
Document Actions