boundaryCreate: optimization started
This commit is contained in:
parent
2e4ce07d41
commit
bfb6acf7ad
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user