Does anyone knows how to convert trimmed surface to .3dm?
Roman Lygin Tue, 09/06/2005 - 20:19
Is .3dm a 3D Studio format ? If so, you need to use some 3rd party lib to output into that format - e.g. lib3ds (if I'm not mistaken), which is avaialble on Source Forge and LGPL'ed licensed. The latter permits using it in a proprietary closed source application.
3D studio format should likely be tesselation-based (i.e. containing triangles - surface facets). You may want to consult VrmlAPI_Writer and StlAPI_Writer classes to see how they tessellate faces and output to similar tesselation-based formats (VRML and STL respectively).
.3dm is not a 3d studio format.
it seems to be rhino3d format. check OpenNURBS ( http://opennurbs.org/index.htm ) for a toolkit allowing you to read/write this format.
Hi,Thank's for your reply.
Yes,this's for Rhino's format,and I get problems with export trimmed surface.My problem is some of the trimmed surface can't export to .3dm format.(It means some trimmed surface is OK.)I don't know what's problem with my program by OpenCasCade.And I have posted question to opennurbs's forum too.But I can't get help to resolve my problem.So,I'm just try to check out this forum to see if someone have ever reseach this kind of subject that can help me.
Tue, 09/06/2005 - 20:19
Is .3dm a 3D Studio format ? If so, you need to use some 3rd party lib to output into that format - e.g. lib3ds (if I'm not mistaken), which is avaialble on Source Forge and LGPL'ed licensed. The latter permits using it in a proprietary closed source application.
3D studio format should likely be tesselation-based (i.e. containing triangles - surface facets). You may want to consult VrmlAPI_Writer and StlAPI_Writer classes to see how they tessellate faces and output to similar tesselation-based formats (VRML and STL respectively).
Hope this helps.
Roman Lygin
Tue, 09/06/2005 - 20:33
.3dm is not a 3d studio format.
it seems to be rhino3d format. check OpenNURBS ( http://opennurbs.org/index.htm ) for a toolkit allowing you to read/write this format.
Stephane
Wed, 09/07/2005 - 06:18
Hi,Thank's for your reply.
Yes,this's for Rhino's format,and I get problems with export trimmed surface.My problem is some of the trimmed surface can't export to .3dm format.(It means some trimmed surface is OK.)I don't know what's problem with my program by OpenCasCade.And I have posted question to opennurbs's forum too.But I can't get help to resolve my problem.So,I'm just try to check out this forum to see if someone have ever reseach this kind of subject that can help me.
Sincerely,
Ivy
Wed, 09/07/2005 - 18:35
Hi Stephan,
Thanks for correction.
Roman