Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Removed unused imports and variables #35

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/GEOUNED/Cuboid/translate.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from GEOUNED.Utils.booleanFunction import BoolSequence
import GEOUNED.Utils.Geometry_GU as GU
from GEOUNED.Utils.BasicFunctions_part1 \
import isParallel, isOposite, isInLine, signPlane, isSameValue
import isParallel, isOposite
import GEOUNED.Utils.BasicFunctions_part2 as BF
import GEOUNED.Decompose.Decom_one as Decom
from GEOUNED.Utils.Options.Classes import Tolerances as tol
Expand Down Expand Up @@ -49,8 +49,6 @@ def isInverted(solid):
u=(Range[1]+Range[0])/2.0
v=(Range[3]+Range[2])/2.0

dist1=face.CenterOfMass.distanceToPoint(solid.BoundBox.Center)
dist2=face.CenterOfMass.add(face.normalAt(u,v).multiply(1.0e-6)).distanceToPoint(solid.BoundBox.Center)
point2=face.CenterOfMass.add(face.normalAt(u,v).multiply(1.0e-6))

if (solid.isInside(point2,1e-7,False)):
Expand All @@ -61,7 +59,6 @@ def isInverted(solid):

def getId(facein, Surfaces):

surfin = str(facein)
if isParallel(facein.Axis,FreeCAD.Vector(1,0,0),tol.pln_angle) :
P = 'PX'
elif isParallel(facein.Axis,FreeCAD.Vector(0,1,0),tol.pln_angle) :
Expand Down