numpy-stl icon indicating copy to clipboard operation
numpy-stl copied to clipboard

the centroids of a stl file was not update after i rotated the stl file

Open xuwenhua4202 opened this issue 1 year ago • 2 comments

xuwenhua4202 avatar Jan 13 '24 07:01 xuwenhua4202

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Feb 13 '24 01:02 github-actions[bot]

The centroids are not updated automatically for performance reasons. You can easily update it using the update_centroids method though: https://github.com/wolph/numpy-stl/blob/26c9332427de1d49aefb6831b1073e3d3ed71ce3/stl/base.py#L348-L349

Or call the update_normals method which updates the centroids as well by default

wolph avatar Feb 13 '24 02:02 wolph

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 15 '24 01:03 github-actions[bot]