mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-30 04:10:34 -08:00
Fixed text on path bug (radians/degrees)
This commit is contained in:
parent
c7232fc230
commit
dc63ce9927
1 changed files with 2 additions and 2 deletions
|
|
@ -4078,12 +4078,12 @@ class Compound(Shape, Mixin3D):
|
|||
position_on_path + face_bottom_center.X / path_length
|
||||
)
|
||||
wire_tangent = text_path.tangent_at(relative_position_on_wire)
|
||||
wire_angle = -180 * Vector(1, 0, 0).get_signed_angle(wire_tangent) / pi
|
||||
wire_angle = Vector(1, 0, 0).get_signed_angle(wire_tangent)
|
||||
wire_position = text_path.position_at(relative_position_on_wire)
|
||||
|
||||
return orig_face.translate(wire_position - face_bottom_center).rotate(
|
||||
Axis(wire_position, (0, 0, 1)),
|
||||
wire_angle,
|
||||
-wire_angle,
|
||||
)
|
||||
|
||||
if sys.platform.startswith("linux"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue