Subject: CGAL users discussion list
List archive
- From: gang wang <>
- To: <>
- Subject: RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp)
- Date: Wed, 29 Jul 2009 14:44:38 +0800
- Importance: Normal
I know where my mistake is. The two points of a halfedge is h->previous->vertex() and h->vertex(), not h->vertex() and h->next()->vertex() I know how polyhedron_prog_cube.cpp works now. Is there any suggestion to create a surface(solid object) using triangles? Thanks From: To: Date: Wed, 29 Jul 2009 13:42:06 +0800 Subject: RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp) I know the result of P.is_tetrahedron(h) should be false. Now the remaining questions are: Are the figures in the manual(P1488) right? Does h->opposite() have the same vertices with h? Why in my test program(below in the first email) they are different four points? Thanks From: To: Date: Wed, 29 Jul 2009 10:29:07 +0800 Subject: RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp) Sorry, I typed the wrong title (polyhedron_prog_cube.cpp) Thanks From: To: Date: Wed, 29 Jul 2009 09:28:48 +0800 Subject: [cgal-discuss] About polyhedra(polyhedron_prog_off.cpp) Hi All, I am confused about Polyhedra edges, and found it difficult to manipulate. 1. I created a project including examples/Polyhedron/polyhedron_prog_cube.cpp, build and run, the result of P.is_tetrahedron(h) is false. Is the fact true? Are the figures in the manual(P1488) right? 2. In P1513, said "The opposite() member function returns this halfedge of opposite orientation." I edit the below code: CGAL_precondition( P.is_valid()); typedef Polyhedron::Point_3 Point; typedef Polyhedron::Halfedge_handle Halfedge_handle; Halfedge_handle h = P.make_tetrahedron( Point( 1, 0, 0), &nb sp; Point( 0, 0, 1), Point( 0, 0, 0), Point( 0, 1, 0)); Halfedge_handle g = h->next()->opposite()->next(); // Fig. (a) std::cout << "h" << std::endl; std::cout << h->vertex()->point() << std::endl; std::cout << h ->next()->vertex()->point() << std::endl; std::cout << std::endl; std::cout << "h opposite" << std::endl; Halfedge_handle ho = h->opposite(); std::cout << ho->vertex()->point() << std::endl; std::cout << ho->next()->vertex()->point() << std::endl; std::cout << std::endl; The result is: h 1 0 0 0 0 1 h opposite 0 0 0 0 1 0 It seems h opposite is not h of opposite orientation. Did I misunderstand something? 3. Is there any other way to construct a polyhedra or 3D surface? Thanks See all the ways you can stay connec ted to friends and family What can you do with the new Windows Live? Find out What can you do with the new Windows Live? Find out What can you do with the new Windows Live? Find out |
- [cgal-discuss] About polyhedra(polyhedron_prog_off.cpp), gang wang, 07/29/2009
- RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp), gang wang, 07/29/2009
- RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp), gang wang, 07/29/2009
- RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp), gang wang, 07/29/2009
- RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp), gang wang, 07/29/2009
- RE: [cgal-discuss] About polyhedra(polyhedron_prog_cube.cpp), gang wang, 07/29/2009
Archive powered by MHonArc 2.6.16.