Got Questions? Get Answers.
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

Thread Subject:
Compute a normal vector on a mesh

Subject: Compute a normal vector on a mesh

From: Toan Cao

Date: 12 Apr, 2013 03:03:08

Message: 1 of 2

Hi everyone,
I have a mesh in 3D space (consists of 3D vertices and facets). Normal vector at each vertex and normal vector of each facet are available.
If i would like to compute normal vector of a point X on mesh (X is not one of any vertices of mesh). Do you have any solution ?
I read some documents which recommend to use barycentric coordinate to interpolate normal vector of X if we know a triangle (facet) which X is inside. If so, computation is so much when we have to check every facet for X !?

Thanks in advance for your solution !
Toan

Subject: Compute a normal vector on a mesh

From: Bruno Luong

Date: 12 Apr, 2013 05:22:07

Message: 2 of 2

"Toan Cao" <toancv3010@gmail.com> wrote in message <kk7thb$nl5$1@newscl01ah.mathworks.com>...
> Hi everyone,
> I have a mesh in 3D space (consists of 3D vertices and facets). Normal vector at each vertex and normal vector of each facet are available.
> If i would like to compute normal vector of a point X on mesh (X is not one of any vertices of mesh). Do you have any solution ?
> I read some documents which recommend to use barycentric coordinate to interpolate normal vector of X if we know a triangle (facet) which X is inside. If so, computation is so much when we have to check every facet for X !?

Hint: The cross-product of two edges provide a normal vector.

Bruno

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us