Skip to content

write X3D even if there is no mesh (just like the STL output)

jeremy theler requested to merge cadx3d into master

Inspired in the STL output of the CAD triangulation, this commit adds the same functionality for X3D format.

It uses the same option Mesh.StlOneSolidPerSurface as the STL writer to pick how the faces are grouped. If it is 1 (one solid per surface) then the triangulation used indexed triangles, otherwise it uses coordinate points. By default it also writes the points as balls, but maybe a new option should be added for that.

I will try to also include edges in the output.

Merge request reports