Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Accessing vertices and simplex information

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Accessing vertices and simplex information


Chronological Thread 
  • From: Mariette Yvinec <>
  • To:
  • Subject: Re: [cgal-discuss] Accessing vertices and simplex information
  • Date: Tue, 06 Dec 2011 13:35:51 +0100

The function
template <class C2t3>
bool output_surface_facets_to_off (std::ostream& os,
const C2t3& c2t3,
int options =
Surface_mesher::IO_ORIENT_SURFACE)
available in file
CGAL/IO/complex_2_in_triangulation_3_file_writer.h
should do more or less what you want

Le 06/12/11 11:32, phdprav a écrit :
Dear cgal community,

I am new to CGAL and this should hopefully be a rather simple question. I am
trying to obtain the vertices and corresponding simplex for a 3D surface
defined implicitely as a level set function. My starting point is the
example program mesh_an_implicit_function.cpp

I'd like to modify this program so that it outputs a file with a format
similar to the one shown below:

VERTEX // Coordinates of the vertices
1 0 1 // vertex 0
0 -1 0 // vertex 1
1 0 0 // vertex 2
1 0 -1
-1 0 0
0 1 0

SIMPLEX
0 1 2 // triangle 0 made up of vertex 0, 1, 2.
1 3 2
1 4 3
4 5 0
0 1 4
4 5 3
0 5 2
5 3 2

So basically all I want is to access the vertices, and to know which
vertices form which elements, of a given mesh generated by the example code
mesh_an_implicit_function.cpp. Any advice on how I should go about doing
this? Thank you.

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Accessing-vertices-and-simplex-information-tp4164177p4164177.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


--
Mariette Yvinec
Geometrica project team
INRIA Sophia-Antipolis






Archive powered by MHonArc 2.6.16.

Top of Page