How to change the position and attitude of my stl model?
I often use the software Pro/E to draw my tool, and save the model in .stl format. When I import the .stl model into yade, I can only use the function yade.ymport.stl(), but this function doesn't include the members 'shift' and 'orientation', I don't know how to change the position and attitude of my model. Please help me, thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2012-02-25
- Last reply:
- 2012-02-25
Anton Gladky (gladky-anton) said : | #1 |
Hi,
it seems, stl-import really does not support such operations.
The "quick" solution can be to load your stl-file into the GMSH and
then export it to "MESH"-format.
Then you can import your geometry using yade.ymport.gmsh() [1], which
supports shifting, scaling and rotation of imported geometry.
Anton
[1] https:/
jimtianxi (jimtianxi) said : | #2 |
Thank you for your answer! But what's your meaning of 'quick' solution? Is it a software or an order in yade? How can I get it? Please teach me further in detail. Thank you!
At 2012-02-24 23:55:52,"Anton Gladky" <email address hidden> wrote:
>Your question #188757 on Yade changed:
>https:/
>
> Status: Open => Answered
>
>Anton Gladky proposed the following answer:
>Hi,
>
>it seems, stl-import really does not support such operations.
>The "quick" solution can be to load your stl-file into the GMSH and
>then export it to "MESH"-format.
>
>Then you can import your geometry using yade.ymport.gmsh() [1], which
>supports shifting, scaling and rotation of imported geometry.
>
>Anton
>
>[1] https:/
>dem.org/
>
>--
>If this answers your question, please go to the following page to let us
>know that it is solved:
>https:/
>
>If you still need help, you can reply to this email or go to the
>following page to enter your feedback:
>https:/
>
>You received this question notification because you asked the question.
Anton Gladky (gladky-anton) said : | #3 |
gmsh is a separate software.
If you use something from Debian-based, just:
sudo apt-get install gmsh
Then open your stl-file with this program and save it as mesh.
You can do it even from a command-line, just read the manual.
Anton
Can you help with this problem?
Provide an answer of your own, or ask jimtianxi for more information if necessary.