Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: [Newbie] Polyhedron_incremental_builder_3 and test_facet_indices

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: [Newbie] Polyhedron_incremental_builder_3 and test_facet_indices


Chronological Thread 
  • From: johnzjq <>
  • To:
  • Subject: [cgal-discuss] Re: [Newbie] Polyhedron_incremental_builder_3 and test_facet_indices
  • Date: Fri, 15 Oct 2010 01:01:32 -0700 (PDT)


Dear Eric,

Please refer to the implementation of the facet checker:

template <class InputIterator>
bool test_facet( InputIterator first, InputIterator beyond) {
// tests if the facet described by the vertex indices in the
// range [first,beyond) can be inserted without creating a
// a non-manifold (and therefore invalid) situation.
// First, create a copy of the indices and close it cyclically
std::vector< std::size_t> indices( first, beyond);
if ( indices.size() < 3)
return false;
indices.push_back( indices[0]);//I think this is the reason.
return test_facet_indices( indices);
}

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Newbie-Polyhedron-incremental-builder-3-and-test-facet-indices-tp950202p2996649.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page