topologicpy 0.7.71__py3-none-any.whl → 0.7.73__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
topologicpy/Shell.py CHANGED
@@ -857,25 +857,25 @@ class Shell():
857
857
  xOffset = 0
858
858
  yOffset = 0
859
859
  zOffset = 0
860
- minX = min([Vertex.X(llVertex, mantissa=mantissa), Vertex.X(lrVertex, mantissa=mantissa), Vertex.X(ulVertex, mantissa=mantissa), Vertex.X(urVertex, mantissa=mantissa)])
860
+ x_min = min([Vertex.X(llVertex, mantissa=mantissa), Vertex.X(lrVertex, mantissa=mantissa), Vertex.X(ulVertex, mantissa=mantissa), Vertex.X(urVertex, mantissa=mantissa)])
861
861
  maxX = max([Vertex.X(llVertex, mantissa=mantissa), Vertex.X(lrVertex, mantissa=mantissa), Vertex.X(ulVertex, mantissa=mantissa), Vertex.X(urVertex, mantissa=mantissa)])
862
- minY = min([Vertex.Y(llVertex, mantissa=mantissa), Vertex.Y(lrVertex, mantissa=mantissa), Vertex.Y(ulVertex, mantissa=mantissa), Vertex.Y(urVertex, mantissa=mantissa)])
862
+ y_min = min([Vertex.Y(llVertex, mantissa=mantissa), Vertex.Y(lrVertex, mantissa=mantissa), Vertex.Y(ulVertex, mantissa=mantissa), Vertex.Y(urVertex, mantissa=mantissa)])
863
863
  maxY = max([Vertex.Y(llVertex, mantissa=mantissa), Vertex.Y(lrVertex, mantissa=mantissa), Vertex.Y(ulVertex, mantissa=mantissa), Vertex.Y(urVertex, mantissa=mantissa)])
864
- minZ = min([Vertex.Z(llVertex, mantissa=mantissa), Vertex.Z(lrVertex, mantissa=mantissa), Vertex.Z(ulVertex, mantissa=mantissa), Vertex.Z(urVertex, mantissa=mantissa)])
864
+ z_min = min([Vertex.Z(llVertex, mantissa=mantissa), Vertex.Z(lrVertex, mantissa=mantissa), Vertex.Z(ulVertex, mantissa=mantissa), Vertex.Z(urVertex, mantissa=mantissa)])
865
865
  maxZ = max([Vertex.Z(llVertex, mantissa=mantissa), Vertex.Z(lrVertex, mantissa=mantissa), Vertex.Z(ulVertex, mantissa=mantissa), Vertex.Z(urVertex, mantissa=mantissa)])
866
866
 
867
867
  if placement.lower() == "lowerleft":
868
- xOffset = -minX
869
- yOffset = -minY
870
- zOffset = -minZ
868
+ xOffset = -x_min
869
+ yOffset = -y_min
870
+ zOffset = -z_min
871
871
  elif placement.lower() == "bottom":
872
- xOffset = -(minX + (maxX - minX)*0.5)
873
- yOffset = -(minY + (maxY - minY)*0.5)
874
- zOffset = -minZ
872
+ xOffset = -(x_min + (maxX - x_min)*0.5)
873
+ yOffset = -(y_min + (maxY - y_min)*0.5)
874
+ zOffset = -z_min
875
875
  elif placement.lower() == "center":
876
- xOffset = -(minX + (maxX - minX)*0.5)
877
- yOffset = -(minY + (maxY - minY)*0.5)
878
- zOffset = -(minZ + (maxZ - minZ)*0.5)
876
+ xOffset = -(x_min + (maxX - x_min)*0.5)
877
+ yOffset = -(y_min + (maxY - y_min)*0.5)
878
+ zOffset = -(z_min + (maxZ - z_min)*0.5)
879
879
  returnTopology = Topology.Translate(returnTopology, xOffset, yOffset, zOffset)
880
880
  returnTopology = Topology.Place(returnTopology, originA=Vertex.Origin(), originB=origin)
881
881
  returnTopology = Topology.Orient(returnTopology, origin=origin, dirA=[0, 0, 1], dirB=direction)
@@ -1020,27 +1020,27 @@ class Shell():
1020
1020
  xList.append(Vertex.X(aVertex, mantissa=mantissa))
1021
1021
  yList.append(Vertex.Y(aVertex, mantissa=mantissa))
1022
1022
  zList.append(Vertex.Z(aVertex, mantissa=mantissa))
1023
- minX = min(xList)
1023
+ x_min = min(xList)
1024
1024
  maxX = max(xList)
1025
- minY = min(yList)
1025
+ y_min = min(yList)
1026
1026
  maxY = max(yList)
1027
- minZ = min(zList)
1027
+ z_min = min(zList)
1028
1028
  maxZ = max(zList)
1029
1029
  xOffset = 0
1030
1030
  yOffset = 0
1031
1031
  zOffset = 0
1032
1032
  if placement.lower() == "lowerleft":
1033
- xOffset = -minX
1034
- yOffset = -minY
1035
- zOffset = -minZ
1033
+ xOffset = -x_min
1034
+ yOffset = -y_min
1035
+ zOffset = -z_min
1036
1036
  elif placement.lower() == "bottom":
1037
- xOffset = -(minX + (maxX - minX)*0.5)
1038
- yOffset = -(minY + (maxY - minY)*0.5)
1039
- zOffset = -minZ
1037
+ xOffset = -(x_min + (maxX - x_min)*0.5)
1038
+ yOffset = -(y_min + (maxY - y_min)*0.5)
1039
+ zOffset = -z_min
1040
1040
  elif placement.lower() == "center":
1041
- xOffset = -(minX + (maxX - minX)*0.5)
1042
- yOffset = -(minY + (maxY - minY)*0.5)
1043
- zOffset = -(minZ + (maxZ - minZ)*0.5)
1041
+ xOffset = -(x_min + (maxX - x_min)*0.5)
1042
+ yOffset = -(y_min + (maxY - y_min)*0.5)
1043
+ zOffset = -(z_min + (maxZ - z_min)*0.5)
1044
1044
  returnTopology = Topology.Translate(returnTopology, xOffset, yOffset, zOffset)
1045
1045
  returnTopology = Topology.Place(returnTopology, originA=Vertex.Origin(), originB=origin)
1046
1046
  returnTopology = Topology.Orient(returnTopology, origin=origin, dirA=[0, 0, 1], dirB=direction)