Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] normal vector of a facet

Subject: CGAL users discussion list

List archive

[cgal-discuss] normal vector of a facet


Chronological Thread 
  • From: Ramin H <>
  • To:
  • Subject: [cgal-discuss] normal vector of a facet
  • Date: Fri, 5 Mar 2010 14:16:56 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ktMUmfZ05STFWy4lP8SxGPB5YLUSDwEvrbxQxvlQMu1dFpAP6UTZIgZKcJyHP++B87 pgHRrQDHGNNMMUum2sIbKarCenXSpTzerdtClDcp3un5X15VdgVn+XP8ox7FGlxYeUjj q8e539QISLBCyWxIZCONZB9aahl8uqhJEdwBM=

Hi everyone,
I have the handle to a facet of a 3D triangulation and would like to find the normal vector of the facet. This is how I am doing it but it looks like the normal is incorrect.

// const Facet& f is passed to this function in the function argument ...
const Point_3& p1 = f.first->vertex((f.second+1)&3)->point();
const Point_3& p2 = f.first->vertex((f.second+2)&3)->point();
const Point_3& p3 = f.first->vertex((f.second+3)&3)->point();
Vector_3 v1 = CGAL::normal(p1, p2, p3);

Am I missing something?

-Ramin




Archive powered by MHonArc 2.6.16.

Top of Page