Skip to content

feat(PolyhedralSurface): generalize constructor with template

lbartoletti requested to merge allow_polyhedron_in_polyhedralsurface into master

This commit generalizes the PolyhedralSurface constructor to work with different polyhedron types using a template approach. It replaces the specific MarkedPolyhedron constructor with a template constructor that can handle both MarkedPolyhedron and CGAL::Polyhedron_3.

  • Modify PolyhedralSurface.h to declare a template constructor
  • Update PolyhedralSurface.cpp to implement the template constructor
  • Add explicit instantiations for MarkedPolyhedron and CGAL::Polyhedron_3
  • Remove redundant whitespace and comments

This change improves code reusability and flexibility while maintaining existing functionality. Can (will?) be used to convert Sphere to a PolyhedralSurface.

Merge request reports