comment occ.Mirror

This commit is contained in:
Joachim Schoeberl 2024-06-11 08:06:17 +02:00
parent f5c9b87ee7
commit cc3f27e514
2 changed files with 19 additions and 2 deletions

View File

@ -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;

View File

@ -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)
{