mirror of https://github.com/CGAL/cgal
add c3t3.set_triangulation()
that internally calls rescan_after_load_of_triangulation() it avoids calling it explicitly or documenting it, but fixes the issue of updating the internal metadata of C3t3 automatically
This commit is contained in:
parent
31e6f05b2b
commit
9c58f6c900
|
|
@ -69,8 +69,7 @@ int main(int , char* [])
|
|||
|
||||
//build a C3T3
|
||||
C3T3 c3t3;
|
||||
c3t3.triangulation() = tr;
|
||||
c3t3.rescan_after_load_of_triangulation();
|
||||
c3t3.set_triangulation(tr);
|
||||
|
||||
std::cout << "Number of corners: " << c3t3.number_of_corners() << std::endl;
|
||||
std::cout << "Number of edges: " << c3t3.number_of_edges() << std::endl;
|
||||
|
|
|
|||
|
|
@ -351,6 +351,14 @@ public:
|
|||
far_vertices_.clear();
|
||||
}
|
||||
|
||||
/** sets the internal triangulation to \p tr
|
||||
*/
|
||||
void set_triangulation(const Triangulation& tr)
|
||||
{
|
||||
tr_ = tr;
|
||||
rescan_after_load_of_triangulation();
|
||||
}
|
||||
|
||||
/** adds cell \p cell to the 3D complex, with subdomain index \p index
|
||||
*/
|
||||
void add_to_complex(const Cell_handle& cell, const Subdomain_index& index)
|
||||
|
|
|
|||
Loading…
Reference in New Issue