mirror of https://github.com/CGAL/cgal
Connect the checkbox "Search for seeds" to real code.
This commit is contained in:
parent
69d5084b68
commit
b3d32d823f
|
|
@ -834,6 +834,16 @@ void Volume::display_surface_mesher_result()
|
|||
Surface_3 surface(m_image, bounding_sphere, m_relative_precision);
|
||||
// Threshold threshold(m_image.isovalue());
|
||||
|
||||
// surface mesh traits class
|
||||
typedef CGAL::Surface_mesher::Implicit_surface_oracle_3<Kernel,
|
||||
// typedef CGAL::Surface_mesher::Image_surface_oracle_3<Kernel,
|
||||
Surface_3,
|
||||
Classify_from_isovalue_list,
|
||||
Generate_surface_identifiers> Oracle;
|
||||
Oracle oracle(classify, generate_ids);
|
||||
|
||||
if(mw->searchSeedsCheckBox->isChecked())
|
||||
{
|
||||
std::vector<Point> seeds;
|
||||
{
|
||||
std::cerr << "Search seeds...\n";
|
||||
|
|
@ -853,14 +863,6 @@ void Volume::display_surface_mesher_result()
|
|||
}
|
||||
}
|
||||
}
|
||||
// surface mesh traits class
|
||||
typedef CGAL::Surface_mesher::Implicit_surface_oracle_3<Kernel,
|
||||
// typedef CGAL::Surface_mesher::Image_surface_oracle_3<Kernel,
|
||||
Surface_3,
|
||||
Classify_from_isovalue_list,
|
||||
Generate_surface_identifiers> Oracle;
|
||||
Oracle oracle(classify, generate_ids);
|
||||
|
||||
for(std::vector<Point>::const_iterator it = seeds.begin(), end = seeds.end();
|
||||
it != end; ++it)
|
||||
{
|
||||
|
|
@ -881,6 +883,12 @@ void Volume::display_surface_mesher_result()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
oracle.construct_initial_points_object()(surface,
|
||||
CGAL::inserter(c2t3.triangulation()),
|
||||
20);
|
||||
}
|
||||
|
||||
std::cerr << boost::format("Number of initial points: %1%\n") % del.number_of_vertices();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue