Feature Request: Make export precision a mesh trait

Hello, I have a feature request. The write_mesh method has a precision parameter, that is by default 6, which controls how many decimal places of vertex coordinates are written when exporting the mesh. When using double precision coordinates, 6 decimal places is little. In fact, I had several times algorithms that did not converge when float was used in the export function (I think it was fixed in 8.1) and now require to set the precision to a larger value when exporting the mesh. It would be good to add the precision to the mesh traits classes and increase it in the DefaultTraitsDouble class. One note on the new DefaultTraitsDouble class, but probably hard to change now that people are using it: Why does it use Vec4f Color, making it incompatible with the DefaultTraits class that uses Vec4uc Color? It would be really nice to have a DefaultTraitsDouble class included that is identical to the DefaultTraits class except for the precision of the floating-point vectors. with kind regards, Alexander Schier
participants (1)
-
Alexander Schier