Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] which are function to read .off Element?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] which are function to read .off Element?


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] which are function to read .off Element?
  • Date: Wed, 22 Oct 2008 17:04:13 +0200


Hi Samay,

especially for beginners it is helpful to have a look at the manual.
It is organized in chapters for data structure and you should
lok here
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Subsection_12.3.1
and for your specific question go to

12.3.2 Example with Geometry in Vertices

Besides the user manual with examples there is also the Reference
manual with a page per class listing and explaining member functions.

Follow the link at the bottom,
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Polyhedron_ref/Chapter_intro.html
or click on "Reference Manual" for the chapter
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/contents.html#part_VI

hope this helps,

andreas


Samay Kumar wrote:
Hello Friends,

I have successfully able to read .off file using Polyhedron_3<Kernel> but I dont to how to access list of vertex and faces.

Actually I am really a beginner in C++ as well CGAL so that facing a little bit lack of help how to use functions of CGAL. Kindly provide me hint. I could have able to access size of vertex, edges and faces using P.size_of_vertices() but could not find function to access list of vertex cordinates.

Kindly give hint how to access...
1. list of vertex co-ordinates
2. list of indexes of vertex per face
3. how to access particular vertex.

Thanks a lot for any help in advance.

Greetings,
Samay





Archive powered by MHonArc 2.6.16.

Top of Page