Comments (5)
- Yes, take a look at the example of the readme: https://github.com/WoLpH/numpy-stl#modifying-mesh-objects
- The easiest method I can think of is by rotating first and doing
mesh.z.max() - mesh.z.min()
from numpy-stl.
Thank you for replying back. I appreciate the time.
-
I've tried to follow the code but I am kinda lost. Would you please post a code example on this page for ONLY the lines of codes that any user can use to rotate their parts?
-
I am getting an error "module 'stl.mesh' has no attribute 'z'".
from numpy-stl.
from stl import mesh
your_mesh = mesh.Mesh.from_file('tests/stl_binary/HalfDonut.stl')
# Rotate 90 degrees over the Y axis
your_mesh.rotate([0.0, 0.5, 0.0], math.radians(90))
z_height = your_mesh.z.max() - your_mesh.z.min()
from numpy-stl.
Thank you very much. Honestly, I didn't expect it to be that simple, I thought I need to copy all the code under "modifying mech objects" and tweak it. Thank you for clarifying that, very kind of you. I've seen you posted a citation for your code on another post, I'll make sure to use that. Have a good day/night.
from numpy-stl.
from numpy-stl.
Related Issues (20)
- is_closed() gives false positives for simple STLs HOT 7
- stl2ascii raises a TypeError: File handles should be in binary mode - even when writing an ASCII STL. HOT 1
- Combined STL HOT 1
- How to use `test` modules HOT 1
- Graph Generation is Blank HOT 1
- Parsing ASCII STL ending with "end solid" raises exception HOT 2
- about projection area HOT 1
- shape cant find HOT 1
- Save multi-part stls HOT 3
- Possible error in volume calculations HOT 4
- Can we check if two different stl files are overlapping each other HOT 1
- saving ascii STL HOT 2
- Merge STL question HOT 4
- AttributeError: module 'stl' has no attribute 'BaseStl HOT 1
- Computing the Max Z-height for double rotation HOT 3
- More info needed on stl atributes HOT 3
- the centroids of a stl file was not update after i rotated the stl file HOT 3
- How can i find linear parameters of stl model? HOT 2
- can't make image array into *.stl HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numpy-stl.