"Print()" a 3D object

7 views
Skip to first unread message

William Adams

unread,
Jul 10, 2025, 6:48:36 AMJul 10
to PythonSCAD
Currently, if one prints a variable containing a 3D object:

    from openscad import *
    a=cube(1)
    a.show()
    print(a)

the output is:

>OpenSCAD (2)

Would it be helpful/possible for it to be:

>cube(size = [1, 1, 1], center = false);

(the CSG tree representation)?

Currently, I'm trying to debug why what should be a list structure of 3D objects isn't rendering and I believe that would be helpful to me.

William

Guenther Sohler

unread,
Jul 10, 2025, 10:57:35 AMJul 10
to William Adams, PythonSCAD
Thats a great idea and a low hanging fruit.
I'll probably address this next.
(just did some trials with LuaSCAD ...)


--
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/98fc65da-25c0-46c8-949a-c46f138e0edan%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guenther Sohler

unread,
Jul 10, 2025, 3:18:43 PMJul 10
to William Adams, PythonSCAD
I think this was desired ....

https://imgur.com/a/EIFffxO
Message has been deleted

William Adams

unread,
Jul 11, 2025, 6:34:39 PMJul 11
to PythonSCAD
Yes!

Exactly!

Something to look forward to after an update this weekend?

William

Reply all
Reply to author
Forward
0 new messages