Replies: 1 comment 1 reply
-
from build123d import *
from ocp_vscode import *
r2 = 100
r1 = 80
fs = 40
base_cylinder = Cylinder(r2, 300)
top = base_cylinder.faces().sort_by(Axis.Z)[-1]
text_path = (top - offset(top, r1 - r2)).face().inner_wires()[0]
text = Text(
"around & around & around &", font_size=fs, path=text_path, position_on_path=0.45
)
embossed_text = extrude(text, 5)
show_all() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have already learned how to write a text on the lateral of a cylinder. Now I have a similiar problem. How to write a text on the top of a cylinder. Each letter should
follow the direction the circumference of r1 (marked red in the sketch below).
This time the face is planar. The path might be circle r1? How to puzzle this together?
Beta Was this translation helpful? Give feedback.
All reactions