mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
comment occ.Mirror
This commit is contained in:
parent
f5c9b87ee7
commit
cc3f27e514
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user