Skip to content

OpenSCAD - Python Edition

Advertising
Advertising
?
Creation quality: 0.0/5 (0 votes)
Evaluation of members on the printability, utility, level of detail, etc.

  • 527 views
  • 3 downloads

License
3D design format
Folder details Close
  • table.scad
  • table.stl

Learn more about the formats

Publication date 2023-01-11 at 00:02
?
Published to Thingiverse on: 2023-01-10 at 07:59
Design number 1003985

3D printer file info

3D model description

OpenSCAD is very powerful, but its also very limited, because variables can only be assigned once and trick workarounds are required to overcome this shortness. Why dont use another interpreter - like Python ?

Python has all the options you like and you can do clever things before rendering your 3D shapes( e.g. calculate the bits of an QR code)

This Variant is still under heavy development, but it already available for testing. Following commands are already available. My plan is to implement all of them and even more

These are the commands which are already available:

cube cylinder sphere

translate rotate

union intersection difference

square circle

linear_extrude rotate_extrude

A possible working program looks like

def foot(x,y):

c=cube([1,1,10])


return translate(c,[x,y,0])

def plate():

return cube([11,11,1])

parts=[]

parts.append(translate(plate(),[0,0,10]))

for y in [0,10]:

for x om [0,10]:


    parts.append(foot(x,y]))

output(union(parts))

Have a look at its web page. it is at

http://www.guenther-sohler.net/openscad

3D printing settings

-

Tags

Advertising


Page translated by automatic translation. See the original version.
Issue with this design? Report a problem.

Would you like to support Cults?

You like Cults and you want to help us continue the adventure independently? Please note that we are a small team of 3 people, therefore it is very simple to support us to maintain the activity and create future developments. Here are 4 solutions accessible to all:

  • ADVERTISING: Disable your banner blocker (AdBlock, …) and click on our banner ads.

  • AFFILIATION: Make your purchases online by clicking on our affiliate links here Amazon.

  • DONATE: If you want, you can make a donation via Ko-Fi πŸ’œ.

  • WORD OF MOUTH: Invite your friends to come, discover the platform and the magnificent 3D files shared by the community!


Sharing and downloading on Cults3D guarantees that designs remain in makers community hands! And not in the hands of the 3D printing or software giants who own the competing platforms and exploit the designs for their own commercial interests.

Cults3D is an independent, self-financed site that is not accountable to any investor or brand. Almost all of the site's revenues are paid back to the platform's makers. The content published on the site serves only the interests of its authors and not those of 3D printer brands who also wish to control the 3D modeling market.

100% secure payment by credit card, PayPal, Apple Pay, Google Pay, etc.
View all payment options.