Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How is circumcenter of a tetrahedron computed

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How is circumcenter of a tetrahedron computed


Chronological Thread 
  • From: Olivier Devillers <>
  • To:
  • Subject: Re: [cgal-discuss] How is circumcenter of a tetrahedron computed
  • Date: Tue, 28 Apr 2015 09:25:08 +0200



Le 28/04/15 09:16, Olivier Devillers a écrit :


Le 28/04/15 07:52, Sebastien Loriot (GeometryFactory) a écrit :

Try something like this:

Cell_handle cell;
Point_3 p = CGAL::circumcenter(
              cell->vertex(0),
              cell->vertex(1),
              cell->vertex(2),
              cell->vertex(3) );

Sebastien.


or


Cell_handle cell;
Point_3 p = CGAL::circumcenter(
              cell->vertex(0)->point(),
              cell->vertex(1)->point(),
              cell->vertex(2)->point(),
              cell->vertex(3)->point() );


http://doc.cgal.org/latest/Kernel_23/group__circumcenter__grp.html#gaf3f728fdb8878f994c76e83bbf795fb0


or
Cell_handle cell;
Point_3 p = dt.dual(cell);

http://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Delaunay__triangulation__3.html#a19383115ac1770759402450107d7dc04
--
Olivier Devillers, chercheur à

PNG image




Archive powered by MHonArc 2.6.18.

Top of Page