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
605 stars 103 forks source link

Is it possible to create model from 2nd order surface equation? #172

Closed d-qql closed 2 years ago

d-qql commented 3 years ago

Hello! I'm trying to create .stl of ellipsoid but have no idea how to get faces to use an example from README How is it better to do with this library if I only know the equation of ellipsoid?

wolph commented 3 years ago

While it's not impossible to do, I don't think this library is really suited for your task.

From the equation you have the dimensions of your object, but STL files deal with triangles. Which means that you need to do triangulation to convert your curves into triangles which is not something that this library alone can do. You could do that using scipy but I don't have a tutorial for that