3D printing

23 views
Skip to first unread message

Joshua Hunt

unread,
Sep 10, 2023, 1:46:00 AM9/10/23
to Pyret Discuss
Hello! I am new to the coding language and was wondering if there was away to 3D print what I/students code. I looked in the discussion but I have not seen anything so I apologize if I missed something

Shriram Krishnamurthi

unread,
Sep 10, 2023, 8:19:38 AM9/10/23
to pyret-...@googlegroups.com
Sorry, what does "3D print" mean?

Joshua Hunt

unread,
Sep 10, 2023, 10:30:44 AM9/10/23
to pyret-...@googlegroups.com
Being able to model and then use a 3D printer to print the object out

On Sun, Sep 10, 2023 at 15:19 Shriram Krishnamurthi <shr...@gmail.com> wrote:
Sorry, what does "3D print" mean?

--
You received this message because you are subscribed to a topic in the Google Groups "Pyret Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyret-discuss/_lsLY8kPgSQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyret-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyret-discuss/CAJUf2yQ-bV6WUQJ1H-YDBMFAHSxVPT%3DPUmkyEbV%3DDDoctVV8fg%40mail.gmail.com.

Shriram Krishnamurthi

unread,
Sep 10, 2023, 10:44:28 AM9/10/23
to pyret-...@googlegroups.com
Ah, I see. That's not something Pyret is designed for right now.

You received this message because you are subscribed to the Google Groups "Pyret Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyret-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyret-discuss/CAK1xBd-uC8b39o9hFKacXAicMhMp4O-BxXBQ4peUEp3e5VWxfA%40mail.gmail.com.

Tom Hoffman

unread,
Sep 10, 2023, 11:23:18 AM9/10/23
to pyret-...@googlegroups.com
As Shriram said, Pyret (and wescheme.org) doesn't do 3d graphics, so it doesn't produce anything you could 3d print.

This fall I am going to try applying circles of evaluation to doing *simple* 3d graphics in Scheme using an environment called libfive Studio.


Where this code:

difference(

difference(sphere(9),

torus(8, 5, [0, 0, 0])),

cylinder(2, 20, [0,0,-10]))


Produces this bead (difference "subtracts" the second shape from the first):


image.png


Which can be exported as an .stl file and printed.


There are also Python bindings, so theoretically an easy transition from Pyret.


This is not an official Bootstrap project, and a spectacular faceplant is quite possible, but I'll let the team know if it works and share the materials (I still have to write up all the contracts, etc).


Tom Hoffman

E-Cubed Academy

Providence, RI



Joshua Hunt

unread,
Sep 10, 2023, 1:20:46 PM9/10/23
to pyret-...@googlegroups.com
I see thank you for the help. Is this a something you may add in the future?

Shriram Krishnamurthi

unread,
Sep 10, 2023, 1:24:38 PM9/10/23
to pyret-...@googlegroups.com
We have no real plans for it. It's a really niche thing, and people are likely to want to use specialized 3D-printing tools instead. To be honest it's a bit difficult for me to see what Pyret really has to contribute here!

Tom Hoffman

unread,
Sep 10, 2023, 3:11:44 PM9/10/23
to pyret-...@googlegroups.com
Just to be clear -- the distinction is between 2d and 3d graphics, not printing as such.  

Pyret generates 2d graphics, and you can print those out in a 2d (regular, paper) printer.

If you have a program or programming environment that outputs 3d graphics in a standard format, you should be able to use a slicer which works with your printer to create 3d prints.

--Tom

On Sun, Sep 10, 2023 at 1:24 PM Shriram Krishnamurthi <shr...@gmail.com> wrote:
We have no real plans for it. It's a really niche thing, and people are likely to want to use specialized 3D-printing tools instead. To be honest it's a bit difficult for me to see what Pyret really has to contribute here!

--
You received this message because you are subscribed to the Google Groups "Pyret Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyret-discus...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages