fix compilation when tetrahedron_soup_to_triangulation_3() is called without NP

This commit is contained in:
Jane Tournois 2025-06-04 10:44:35 +02:00
parent 0a8ca42680
commit e059b75b6c
1 changed files with 6 additions and 2 deletions

View File

@ -189,20 +189,24 @@ namespace CGAL {
internal_np::surface_facets_t,
NamedParameters,
Default_facet_map>::reference;
using Subdomain_index = typename Triangulation::Cell::Subdomain_index;
using Default_subdomains = std::vector<Subdomain_index>;
using Subdomains_ref_type
= typename internal_np::Lookup_named_param_def<
internal_np::subdomain_indices_t,
NamedParameters,
int>::reference;
Default_subdomains>::reference;
Triangulation tr;
Default_facet_map empty_map;
Default_subdomains subdomain_indices(tets.size(), Subdomain_index(1));
const Facet_map_ref_type& facets = choose_parameter(
get_parameter_reference(np, internal_np::surface_facets),
empty_map);
const Subdomains_ref_type& subdomains = choose_parameter(
get_parameter_reference(np, internal_np::subdomain_indices),
1);
subdomain_indices);
const bool non_manifold = choose_parameter(
get_parameter(np, internal_np::allow_non_manifold),
false);