Triangulation and vertexNormals on rotated objects

2 visualizaciones (últimos 30 días)
Tyler Englestad
Tyler Englestad el 27 de Dic. de 2018
Editada: Tyler Englestad el 27 de Dic. de 2018
Why are there differences in the triangulation between axis-aligned cubes and slightly rotated cubes?
I have a need for normal vectors at the verticies of somewhat irregular objects (cones, rotated cubes, etc).
Issue reproduction: if I follow the examples outlined in the vertexNormal(...) documentation (vertexNormal Documentation), I get the expected results (image 1). However, slightly rotating the cube (say, 30 degrees about the x-axis--using rotx(30) or otherwise) causes the triangulation to become very skewed compared to the axis-aligned cube (image 2), specifically the top and bottom of the cube. Why? Is this a bug in the delaunayTriangulation? The obvious workaround of performing the triangulation before rotation won't work in the general cases I'm facing outside this example.

Respuestas (0)

Categorías

Más información sobre Delaunay Triangulation en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by