boundaryCreate: optimization started

This commit is contained in:
L-Nafaryus 2021-03-09 14:56:12 +05:00
parent 2e4ce07d41
commit bfb6acf7ad
2 changed files with 20 additions and 8 deletions

View File

@ -172,6 +172,18 @@ class simpleCubic:
rot = [0, 0, 45]
buffergeometry = self.geometry
# Direction vector
[x, y, z, _, _, _, _, _, _] = geompy.GetPosition(self.geometry)
angle = []
center = geompy.MakeVertex(x, y, z)
dvec = geompy.MakeVector(center,
geompy.MakeVertexWithRef(center,
D[0] * math.cos(angle[0]),
D[1] * math.sin(angle[1]),
D[2] * math.sin(angle[2])))
##
if direction == "001":
center = geompy.MakeVertex(2, 2, 1)

View File

@ -55,8 +55,8 @@ patches
neighbourPatch cyclicPlaneBW;
transform translational;
separationVector (2 -2 0);
matchTolerance 1e-2;
//inGroups (symetryPlane);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
@ -72,8 +72,8 @@ patches
neighbourPatch cyclicPlaneFW;
transform translational;
separationVector (-2 2 0);
matchTolerance 1e-2;
//inGroups (symetryPlane);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
@ -89,8 +89,8 @@ patches
neighbourPatch cyclicPlaneR;
transform translational;
separationVector (-2 -2 0);
matchTolerance 1e-2;
//inGroups (symetryPlane);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;
@ -106,8 +106,8 @@ patches
neighbourPatch cyclicPlaneL;
transform translational;
separationVector (2 2 0);
matchTolerance 1e-2;
//inGroups (symetryPlane);
matchTolerance 1e-4;
inGroups (cyclic);
}
constructFrom patches;