Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] About SurfaceMeshTraits_3::Construct_initial_points in Mesh Generation

Subject: CGAL users discussion list

List archive

[cgal-discuss] About SurfaceMeshTraits_3::Construct_initial_points in Mesh Generation


Chronological Thread 
  • From: "Amir Vaxman" <>
  • To: <>
  • Subject: [cgal-discuss] About SurfaceMeshTraits_3::Construct_initial_points in Mesh Generation
  • Date: Sat, 8 Nov 2008 19:01:19 +0200

Hello,

 

I am trying to build my own type of Surface_3, and I am a little confused about the implementation of the function SurfaceMeshTraits_3::Construct_initial_points, described as

 

SurfaceMeshTraits_3::Construct_initial_points A model of this type provides the following operators to construct initial points on the surface:

template <class OutputIteratorPoints>
OutputIteratorPoints operator()(OutputIteratorPoints pts)
which outputs a set of points on the surface,
template <class OutputIteratorPoints>
OutputIteratorPoints operator() (OutputIteratorPoints pts, int n)
which outputs a set of n points on the surface.

 

Why do I need two functions, such that one is a generalization of the other? Further more, which iterator do I need to return? Looking at the include file “Sphere_Oracle_3”, I gathered that I receive the iterator that should point to the first point, and that I return the next-after-last iterator. Is that how it should be?

 

Amir.




Archive powered by MHonArc 2.6.16.

Top of Page