boundaryCreate: optimization started
This commit is contained in:
parent
2e4ce07d41
commit
bfb6acf7ad
@ -172,6 +172,18 @@ class simpleCubic:
|
|||||||
rot = [0, 0, 45]
|
rot = [0, 0, 45]
|
||||||
buffergeometry = self.geometry
|
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":
|
if direction == "001":
|
||||||
center = geompy.MakeVertex(2, 2, 1)
|
center = geompy.MakeVertex(2, 2, 1)
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@ patches
|
|||||||
neighbourPatch cyclicPlaneBW;
|
neighbourPatch cyclicPlaneBW;
|
||||||
transform translational;
|
transform translational;
|
||||||
separationVector (2 -2 0);
|
separationVector (2 -2 0);
|
||||||
matchTolerance 1e-2;
|
matchTolerance 1e-4;
|
||||||
//inGroups (symetryPlane);
|
inGroups (cyclic);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructFrom patches;
|
constructFrom patches;
|
||||||
@ -72,8 +72,8 @@ patches
|
|||||||
neighbourPatch cyclicPlaneFW;
|
neighbourPatch cyclicPlaneFW;
|
||||||
transform translational;
|
transform translational;
|
||||||
separationVector (-2 2 0);
|
separationVector (-2 2 0);
|
||||||
matchTolerance 1e-2;
|
matchTolerance 1e-4;
|
||||||
//inGroups (symetryPlane);
|
inGroups (cyclic);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructFrom patches;
|
constructFrom patches;
|
||||||
@ -89,8 +89,8 @@ patches
|
|||||||
neighbourPatch cyclicPlaneR;
|
neighbourPatch cyclicPlaneR;
|
||||||
transform translational;
|
transform translational;
|
||||||
separationVector (-2 -2 0);
|
separationVector (-2 -2 0);
|
||||||
matchTolerance 1e-2;
|
matchTolerance 1e-4;
|
||||||
//inGroups (symetryPlane);
|
inGroups (cyclic);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructFrom patches;
|
constructFrom patches;
|
||||||
@ -106,8 +106,8 @@ patches
|
|||||||
neighbourPatch cyclicPlaneL;
|
neighbourPatch cyclicPlaneL;
|
||||||
transform translational;
|
transform translational;
|
||||||
separationVector (2 2 0);
|
separationVector (2 2 0);
|
||||||
matchTolerance 1e-2;
|
matchTolerance 1e-4;
|
||||||
//inGroups (symetryPlane);
|
inGroups (cyclic);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructFrom patches;
|
constructFrom patches;
|
||||||
|
Loading…
Reference in New Issue
Block a user