wolph / numpy-stl

Simple library to make working with STL files (and 3D objects in general) fast and easy.
http://numpy-stl.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
624 stars 105 forks source link

STL to segmentation mask #170

Closed sulaimanvesal closed 3 years ago

sulaimanvesal commented 3 years ago

Is there any function that allows us to convert STL to a binary 3D segmentation mask (like a nifty/nrrd file including pixel-spacing) format? this would be very helpful for our task as we have tones of STLs.

wolph commented 3 years ago

This library primarily focusses on simply saving and loading STL files from your meshes. There are a few basic mesh editing functions included but nothing close to what you're looking for.

And without doing a lot of research I wouldn't know where to start doing something like that efficiently.