From cc3f27e5146d9276c6933b93344575e4262ef203 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 11 Jun 2024 08:06:17 +0200 Subject: [PATCH] comment occ.Mirror --- libsrc/meshing/bisect.cpp | 17 +++++++++++++++++ libsrc/occ/python_occ_shapes.cpp | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index 1a835a83..02fceb22 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -3,6 +3,9 @@ #include "bisect.hpp" #include "validate.hpp" +#include "meshing.hpp" // quickfix for parallel + + #define noDEBUG @@ -2792,6 +2795,20 @@ namespace netgen int np = mesh.GetNV(); mesh.SetNP(np); + +#ifdef PARALLEL + if (mesh.GetCommunicator().Size() > 1) + { + mesh.GetParallelTopology().IdentifyVerticesAfterRefinement(); + mesh.GetCommunicator().Barrier(); + mesh.GetParallelTopology().EnumeratePointsGlobally(); + } +#endif + + + + + // int ne = mesh.GetNE(); // int nse = mesh.GetNSE(); // int i, j, l; diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 8d728873..967bbba9 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -780,7 +780,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) PropagateProperties(builder, shape, occ2ng(trafo)); return builder.Shape(); }, py::arg("axes"), - "copy shape, and mirror over plane defined by 'axes'") + "copy shape, and mirror over XY - plane defined by 'axes'") .def("Mirror", [] (const TopoDS_Shape & shape, const gp_Ax1 & ax) { @@ -790,7 +790,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) PropagateProperties(builder, shape, occ2ng(trafo)); return builder.Shape(); }, py::arg("axes"), - "copy shape, and mirror around axis 'axis'") + "copy shape, and rotate by 180 deg around axis 'axis'") .def("Scale", [](const TopoDS_Shape & shape, const gp_Pnt p, double s) {