find_active_cell_around_point,
1,
2)
+ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(merge_triangulations_overloads,
+ merge_triangulations,
+ 1,
+ 3)
const char n_active_cells_docstring[] =
"Return the number of active cells. \n";
- const char merge_docstring[] =
+ const char merge_triangulations_docstring[] =
"Given two or more triangulations, create the triangulation that \n"
"contains the cells of given triangulations. \n";
boost::python::args("self", "scaling_factor"))
.def("merge_triangulations",
&TriangulationWrapper::merge_triangulations,
- merge_docstring,
- boost::python::args("self", "triangulations"))
+ merge_triangulations_overloads(
+ boost::python::args(
+ "self", "triangulations", "vertex_tolerance", "copy_manifolds"),
+ merge_triangulations_docstring))
.def("extrude_triangulation",
&TriangulationWrapper::extrude_triangulation,
extrude_docstring,
template <int dim, int spacedim>
void
merge_triangulations(boost::python::list &triangulations,
- void * triangulation)
+ void * triangulation,
+ const double duplicated_vertex_tolerance,
+ const bool copy_manifold_ids)
{
Triangulation<dim, spacedim> *tria =
static_cast<Triangulation<dim, spacedim> *>(triangulation);
tria_wrapper.get_triangulation()));
}
- GridGenerator::merge_triangulations(tria_ptrs, *tria);
+ GridGenerator::merge_triangulations(tria_ptrs,
+ *tria,
+ duplicated_vertex_tolerance,
+ copy_manifold_ids);
}
void
TriangulationWrapper::merge_triangulations(
- boost::python::list &triangulations)
+ boost::python::list &triangulations,
+ const double duplicated_vertex_tolerance,
+ const bool copy_manifold_ids)
{
AssertThrow(boost::python::len(triangulations) >= 2,
ExcMessage(
}
if ((dim == 2) && (spacedim == 2))
- internal::merge_triangulations<2, 2>(triangulations, triangulation);
+ internal::merge_triangulations<2, 2>(triangulations,
+ triangulation,
+ duplicated_vertex_tolerance,
+ copy_manifold_ids);
else if ((dim == 2) && (spacedim == 3))
- internal::merge_triangulations<2, 3>(triangulations, triangulation);
+ internal::merge_triangulations<2, 3>(triangulations,
+ triangulation,
+ duplicated_vertex_tolerance,
+ copy_manifold_ids);
else
- internal::merge_triangulations<3, 3>(triangulations, triangulation);
+ internal::merge_triangulations<3, 3>(triangulations,
+ triangulation,
+ duplicated_vertex_tolerance,
+ copy_manifold_ids);
}