wrapping text around a cylinder

10 views
Skip to first unread message

Matthieu Hendriks

unread,
Jan 16, 2026, 7:14:35 AMJan 16
to PythonSCAD
How can I wrap text around a cylinder, I tried wrap(2) or wrap(50)  on a text object but if stops rendering at 250/1000 or 500/1000.

A working example would be nice. :)


Hampus

unread,
Mar 20, 2026, 4:01:55 PM (2 days ago) Mar 20
to PythonSCAD

Something like this?

from openscad import * fa=2 fs=0.1 r=10 cylinder(5, r, center=True).show() (text("Round and round we go!") .linear_extrude(0.5) .rotx(90) .wrap(r) .color("gray") .show())

I also noticed hanging at 500/1000 when I did something else. Perhaps going negative on one axis or the other?

Screenshot 2026-03-20 205737.png

nomike Postmann

unread,
Mar 20, 2026, 5:42:25 PM (2 days ago) Mar 20
to PythonSCAD
If you can reproduce the hanging it would be nice if you could create an issue on GitHub so we could look into this.

nomike

Guenther Sohler

unread,
Mar 20, 2026, 5:53:36 PM (2 days ago) Mar 20
to nomike Postmann, PythonSCAD
I presume it will finish any time in the future.

fs=0.1 and fa=2 generates just huge amount of data.
if you comment both values and go with defaults, it finishes almost immediately.

Question to us is: does it make sense to  print a warning about a huge calculation effort approaching ?



--
You received this message because you are subscribed to the Google Groups "PythonSCAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonscad+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/pythonscad/2473db7f-9262-463c-9eac-449550941940n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hampus

unread,
Mar 21, 2026, 4:30:01 AM (yesterday) Mar 21
to PythonSCAD
Guenther, I don't think that's the issue here. What I rendered above takes 50 ms on first render, 10 ms subsequently, and that's on a 15+ year old computer. And I used way simpler geometry when hitting the bug, like a cube or low-res sphere.

Sure Michael, I'll file an issue if I get around to making a repro!
Reply all
Reply to author
Forward
0 new messages