How to control the location of an .stl from importGeometry, i.e. set midpoint to z = 0?

2 vues (au cours des 30 derniers jours)
Mark Lepage
Mark Lepage le 6 Déc 2017
Modifié(e) : Mark Lepage le 6 Déc 2017
Hello,
As the title says, I am importing an .stl file to do analysis in the PDE toolbox.
Everything works fine, however, it looks like matlab just assigns the position of the .stl file.
My object is a cylinder, and I would like the midpoints of the cylinder at the x=y=z=0. In other words I want the center of the cylinder to be at the x=y=0, and the midpoint of the cylinder to be at z=0.
Currently, the center of my cylinder is at some arbitrary x, y value, (x = 12, y = -5).
Does anyone know an easy way to do this?

Réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by