Skip to content

Commit

Permalink
Midline was set up incorrectly, resulting in rotated text.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesterKing committed Jul 1, 2024
1 parent 89395b7 commit 40effcd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions import_3dm/converters/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def import_angular(model, dimang, bc, scale):
for line in displines["lines"]:
_populate_line(dimstyle, PartType.DimensionLine, p, bc, line.From, line.To, scale)


midline = r3d.Line(pts["arrowpt1"], pts["arrowpt2"])
# set up midline and angle addition for text plane orientation
arrow_line= r3d.Line(pts["arrowpt2"], pts["arrowpt1"])
mp = arrow_line.PointAt(0.5)
midline = r3d.Line(mp, pts["centerpt"])
addangle = math.pi * -0.5
if a > math.pi:
addangle = math.pi * 1.5
Expand Down

0 comments on commit 40effcd

Please sign in to comment.