Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

How to find local 2D polygon coordinates of a 3D object represented by TriRep

Asked by Mike IL on 15 Jul 2013

I am working with a large TriRep variable representing a 3D triangulation meshing.

Tri=object.

The Tri vertices are presented in global coordinates system.

given that:

a) polygons' unit normal in global coordinates is: n_local = [nx,ny,nz]

b) Polygon center in global coordinates C = [Cx,Cy,Cz]

c) Polygon vertices in global coordinates: V_global = [v1x,v1y,v1z;v2x,v2y,v2z;v3x,v3y,v3z]

I need to find the operator that transforms the global coordiantes of the polygon into local (in plane) coordinates.

given that n_global=(T*n_local')'; %T is 3x3 rotation transformation does V_local=(T*V_global ')' ? In my practice, it is not.

any suggestions?

0 Comments

Mike IL

Products

No products are associated with this question.

0 Answers

Contact us