Subject: CGAL users discussion list
List archive
- From:
- To:
- Subject: Re: [cgal-discuss] A simple question
- Date: Mon, 10 Dec 2007 13:50:57 +0100 (CET)
- Importance: Normal
> Can you send us a *complete* little program, with the headers inclusions
> and
> your typedefs?
Sorry...
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::Point_3 Point_3;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef Polyhedron::Facet_handle Facet_handle;
typedef Polyhedron::Vertex_handle Vertex_handle;
typedef Polyhedron::Halfedge_handle Halfedge_handle;
Facet_handle app2( Polyhedron P){
return P.facets_begin();}
int main() {
Polyhedron P;
Point_3 p1(0,0,0), p2(0,0,1), p3(0,1,0), p4(1,0,0);
P.make_tetrahedron(p1,p2,p3,p4);
Vertex_handle vh1 = P.facets_begin()->halfedge()->vertex();
Facet_handle fd = app2(P);
Halfedge_handle hh = fd->halfedge();
std::cerr << "All is ok." << std::endl;
Vertex_handle vh2 = fd->halfedge()->vertex(); //segmentation fault
return 0;}
- A simple question, gbatog, 12/10/2007
- Re: [cgal-discuss] A simple question, Laurent Rineau, 12/10/2007
- Re: [cgal-discuss] A simple question, gbatog, 12/10/2007
- Re: [cgal-discuss] A simple question, Daniel Duque Campayo, 12/10/2007
- Re: [cgal-discuss] A simple question, Laurent Rineau, 12/10/2007
- Re: [cgal-discuss] A simple question, gbatog, 12/10/2007
- Re: [cgal-discuss] A simple question, gbatog, 12/10/2007
- Re: [cgal-discuss] A simple question, Laurent Rineau, 12/10/2007
Archive powered by MHonArc 2.6.16.