mirror of https://github.com/CGAL/cgal
Merge pull request #4439 from oleg-alexandrov/expand_example
Add to the user manual example a parameter described in the text
This commit is contained in:
commit
546ac21c79
|
|
@ -60,6 +60,8 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
std::ifstream in((argc>1)?argv[1]:"data/half.xyz");
|
std::ifstream in((argc>1)?argv[1]:"data/half.xyz");
|
||||||
double per = (argc>2)?boost::lexical_cast<double>(argv[2]):0;
|
double per = (argc>2)?boost::lexical_cast<double>(argv[2]):0;
|
||||||
|
double radius_ratio_bound = (argc>3)?boost::lexical_cast<double>(argv[3]):5.0;
|
||||||
|
|
||||||
std::vector<Point_3> points;
|
std::vector<Point_3> points;
|
||||||
std::vector<Facet> facets;
|
std::vector<Facet> facets;
|
||||||
|
|
||||||
|
|
@ -71,7 +73,8 @@ int main(int argc, char* argv[])
|
||||||
CGAL::advancing_front_surface_reconstruction(points.begin(),
|
CGAL::advancing_front_surface_reconstruction(points.begin(),
|
||||||
points.end(),
|
points.end(),
|
||||||
std::back_inserter(facets),
|
std::back_inserter(facets),
|
||||||
perimeter);
|
perimeter,
|
||||||
|
radius_ratio_bound);
|
||||||
|
|
||||||
std::cout << "OFF\n" << points.size() << " " << facets.size() << " 0\n";
|
std::cout << "OFF\n" << points.size() << " " << facets.size() << " 0\n";
|
||||||
std::copy(points.begin(),
|
std::copy(points.begin(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue