[Gmsh] bulk import of physical names?
Christophe Geuzaine
cgeuzaine at uliege.be
Sun Sep 2 08:16:42 CEST 2018
Hi Max,
STEP colors/labels import is not functional yet: there's some initial code (that you highlighted) but some effort should be put into it - it would be a great contribution if somebody had the time/skills to contribute on this feature. A good starting point is probably the FreeCAD implementation:
https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Import/App/ImportOCAF.cpp
https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Import/App/ImportOCAFAssembly.cpp
Cheers,
Christophe
> On 1 Sep 2018, at 19:41, Max Orok <morok at mevex.com> wrote:
>
> Hi everyone,
>
> Is there some way to import physical name-like data in bulk from step files? The data is not ordered in any way so we can't assign groups programmatically in a geo file.
>
> There seems to be a way to import colour data in the OCC input file handler here:
>
> <image.png>
>
> The OCC methods include "ReadMaterials", see
>
> https://www.opencascade.com/doc/occt-6.9.1/refman/html/class_s_t_e_p_c_a_f_control___reader.html
>
> but could Colors also be used as a workaround somehow?
>
> Thanks for your time,
>
> --
> Max Orok
> Contractor
> Mevex Corp.
> www.mevex.com
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh
mailing list