Skip to content

Commit

Permalink
Correct elements count along annotation groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin865 committed Dec 2, 2020
1 parent 0bdfd3f commit 7fad57f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/scaffoldmaker/meshtypes/meshtype_3d_bladderurethra1.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,7 @@ def generateBaseMesh(cls, region, options):
xTexture = d1Texture = d2Texture = d3Texture = []

# Obtain elements count along body and neck of the bladder for defining annotation groups
if includeUrethra:
# bladderLength = length - urethraLength
bodyLength = ureterPositionDown * bladderLength
else:
bodyLength = ureterPositionDown * length
elementsCountAlongBody = int(bodyLength / bladderSegmentLength)
elementsCountAlongBody = round(ureterPositionDown * elementsCountAlongBladder - 1)
elementsCountAlongNeck = elementsCountAlongBladder - elementsCountAlongBody

# Create annotation groups for bladder and urethra
Expand Down

0 comments on commit 7fad57f

Please sign in to comment.