Skip to content

Commit

Permalink
Updated fix as per psauvan suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
teade committed Apr 24, 2024
1 parent 289edd5 commit cdc637f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geouned/GEOUNED/Conversion/CellDefinition.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def GenTorusAnnexVSurface(face,Vparams,forceCylinder=False):
Apex = face.Surface.Center + za * axis
semiAngle = abs(math.atan(d1/(z1-za)))

ConeAxis = axis if (face.Surface.Center.dot(axis) + z1 - Apex.dot(axis)) > 0.0 else -axis
ConeAxis = axis if (z1 - za) > 0.0 else -axis

Vmid = (Vparams[0]+Vparams[1])*0.5
pMid = face.valueAt(0,Vmid) - face.Surface.Center
Expand Down

0 comments on commit cdc637f

Please sign in to comment.