Bryan Bishop wrote:
> On Thu, May 27, 2010 at 10:56 AM, John Griessen wrote:
>> Are STEP and IGES text files?  What is a good reference for them from
>> the viewpoint of translating?
> 
> You can probably write a translator, if you want, by following all of
> the faces, and then using an OBJ library and converting faces from one
> object to the other. 
Sounds reasonable...   Have an example for anything in pythonOCC to anything 
else?
are any of the existing exporters done that way?

For .obj text file it can also just be sort out points defining faces
and output text to define a bare bones .OBJ file.  The add material properties
afterward manually if that is difficult to tease out of OCC.

Are attributes like material and surface texture easy to grab in pythonOCC?

STL is pretty standard for meshes, however, and
> you can probably convert from STL to OBJ with some other tool.

My particular use of .OBJ is still in b-rep form without extra tesselation
into triangles.  Can't use generic STL triangles at all.

John

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to