Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] polyhedron problem

Subject: CGAL users discussion list

List archive

[cgal-discuss] polyhedron problem


Chronological Thread 
  • From: "zhoufang8811" <>
  • To: "cgal-discuss" <>
  • Subject: [cgal-discuss] polyhedron problem
  • Date: Wed, 14 Apr 2010 20:02:54 +0800

I find that Polyhedron_3<Traits> does not consider ther coordinates of the points, so I insert two triangles like this:
 
Point_3 p( 0.0, 0.0, 0.0);
Point_3 q( 1.0, 0.0, 0.0);
Point_3 r( 1.0, 1.0, 0.0);
Point_3 s( 0.0, 1.0, 0.0);
 
s    _ _ _ _  r
|\   \        |
|  \  \       |
|    \  \     |
|      \  \   | 
|_ _ _ \  \ |
p              q
 
Polyhedron P;
P.make_triangle(p, q, s);
P.make_triangle(s,q ,r);
 
but the triangle 'pqs' and 'sqr' do not connect correctly, it has four halfedges along the segment 'sq'. 
 
I want to merge the different edges 'sq' in the two triangles, so the rectangle 'spqr' will be colsed. Is there any way? 
 
2010-04-14

zhoufang8811



Archive powered by MHonArc 2.6.16.

Top of Page