From 5b613dce3f3c0a8b70bbd4cdbe61d10c1b617b24 Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Thu, 11 Jul 2024 15:20:31 +1000 Subject: [PATCH] Added Simplexify --- src/Geometry.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Geometry.jl b/src/Geometry.jl index 57686eb..4a4c219 100644 --- a/src/Geometry.jl +++ b/src/Geometry.jl @@ -427,6 +427,14 @@ function Geometry.UnstructuredDiscreteModel(model::GenericDistributedDiscreteMod ) end +# Simplexify + +function Geometry.simplexify(model::DistributedDiscreteModel) + _model = UnstructuredDiscreteModel(model) + ref_model = refine(_model, refinement_method = "simplexify") + return Adaptivity.get_model(ref_model) +end + # Triangulation # We do not inherit from Triangulation on purpose.