Is it possible to write field data with vtkSTLWriter?

Hello,

I saved my triangle mesh to STL format with vtk. But it didn’t contain any cell field information besides normals. Here is a copy of the ASCII file written:

image

Thank you

Hey, I don’t think the STL file format has support for storing arbitrary data other than the coordinates and topology.

1 Like

You can store a little metadata in the comment field. For example, 3D Slicer stores coordinate system unit (mm) and axis directions (LPS/RAS); MIMICS stores RGB color there.