Personal tools
You are here: Home Forum Use Export binary STL with solid name

Export binary STL with solid name

Up to Use

Export binary STL with solid name

Posted by Tobias Holzmann at March 10. 2017

Hi everybody,

I am wondering if it is possible to export the STL`s in SALOME with specified solidnames. Till now I am always using ASCII files and use a simple bash script to modify the solid names in order to create a region STL file. The script is only working for ASCII files and therefore I want to ask you, if it is possible to export the name of the solid within SALOME directly. Example given: ASCII export:

solid
 facet norma
 .
 .
 .
endSolid

After my script, the file gets:

solid MYNAME
 facet norma
 .
 .
 .
endSolid
MYNAME

Kind regards,
Tobias

PS: I will check if sed can also manipulate binary files.

Re: Export binary STL with solid name

Posted by Fynn at March 12. 2017

Hi Tobias,

I was trying that too and couldn't find a solution to it.

However, if your're using the same boundary names, the attached script merges the surface files and names then.

This is not your preferred solution but I has the advantage of better book keeping of several geometries. In my case a von Karman test geometry. 

cheers,

Fynn

 

Attachments
Powered by Ploneboard
Document Actions