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

mesh union of two pieces of cylinders with a common side face #139

Closed usrpy closed 3 years ago

usrpy commented 4 years ago

Hello, Assuming the boolean union of two pieces of cylinder with a common side face, as case , common cylinders extremities become internal to the resulting mesh body. Is it possible to do that using numpy-stl, leading a watertight and not overlapping mesh result. Does removal of common faces, indicating the plane where these faces are located, before union would be suitable ? Thank you so much for advice.

wolph commented 4 years ago

The main goal of this library is storing and loading STL files to a numpy array. After that you can manipulate it any way you want but the library itself doesn't offer many options in terms of manipulation.

There are a few methods for rotation: https://numpy-stl.readthedocs.io/en/latest/stl.html#stl.Mesh.rotate And transforming a mesh: https://numpy-stl.readthedocs.io/en/latest/stl.html#stl.Mesh.transform Or translating a mesh: https://numpy-stl.readthedocs.io/en/latest/stl.html#stl.Mesh.translate

But removing common faces is a much more intricate operation. You'll have to write an algorithm for that yourself, but if you create something good I'm open to adding it to the library :)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.