f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Add support for 3DM file format?

Open zohozer opened this issue 1 year ago • 6 comments
trafficstars

Hi all.

I do need to visualize a lot of 3DM files created in Rhino and I think that maybe this format (3DM) can be added to the f3d library?

The 3DM format it is described here

From the description: "There are no restrictions. Neither copyright nor copyleft restrictions apply."

Best regards.

zohozer avatar Jun 26 '24 09:06 zohozer

This one may be hard as Nurbs are not natively supported by VTK, so we would need to do some kind discretization.

mwestphal avatar Jun 26 '24 09:06 mwestphal

This one may be hard as Nurbs are not natively supported by VTK, so we would need to do some kind discretization.

We do have parametric surface triangulation with opencascade.

Meakk avatar Jun 26 '24 12:06 Meakk

This one may be hard as Nurbs are not natively supported by VTK, so we would need to do some kind discretization.

It is likely that Rhino's API provide that already (eg. ON_Surface::CreateMesh() "Description: Computes a polygon mesh approximation of the surface" maybe?)

snoyer avatar Jun 26 '24 13:06 snoyer

Here is the OpenNURBS github: https://github.com/mcneel/opennurbs

It is maintained but the build system may reveal to be challenging.

mwestphal avatar Jun 26 '24 15:06 mwestphal

Here is the OpenNURBS github: mcneel/opennurbs

There is a GL example which must output triangles somehow... having a quick look it looks like there is various levels of built-in magic for the conversion, for example Brep face to mesh, or Brep face to Nurbs to triangles

snoyer avatar Jun 26 '24 16:06 snoyer

This one may be hard as Nurbs are not natively supported by VTK, so we would need to do some kind discretization.

When I do use Rhino a lot of times I do need to wait because the software it is calculating meshes even if I do work only with NURBS surfaces. I do think that even Rhino it is using meshes to display the geometry on screen and for the render engine (it is using Cycles as render engine).

zohozer avatar Jun 28 '24 12:06 zohozer