I have been trying various packages/libraries etc.
I’ve tried Trimesh in Python and am running into issues probably due to my poor Python ability. I’m opening a Stackoverflow question about that separately. I’ve used vtkwrite but the “Precision” option is broken in the package and it’s doing some odd-rounding that is changing the original data too much.
From the supporting data formats page, it seems like I want something other than VTK that will preserve orientation.
I’m no expert but I’ve seen this done with vtkPolydata - if anyone else weighs in I’d defer to them! You can see an example of it here:
In this example, a scalar value is assigned to each vertex but I don’t think that’s required for polydata. I’m not sure if you’ll face the same rounding issues you’re having with Trimesh.
Ah back to SlicerEAMapReader, I have a ticket open on that Git due to some issues with the latest version (4.13) and Slicer 5.0.3. Nontheless, the script is helpful, thanks! Looking forward to more input.