• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
OpenSCAD - Python Edition 3D Printer File Image 1
OpenSCAD - Python Edition 3D Printer File Image 2
OpenSCAD - Python Edition 3D Printer File Thumbnail 1
OpenSCAD - Python Edition 3D Printer File Thumbnail 2

OpenSCAD - Python Edition

gsohler avatargsohler

August 1, 2023

printables-icon
DescriptionCommentsTags

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

Category: Art Tools

License:

Creative Commons — Attribution

Related Models

V29 preview image

V29

jzisa profile image

jzisa

81,402

Draw-A-Cat! Stencil for Feline Design preview image

Draw-A-Cat! Stencil for Feline Design

Studio Meshco profile image

Studio Meshco

107

STAND QRCODE/NFC CARD GOOGLE REVIEWS EDITABLE preview image

STAND QRCODE/NFC CARD GOOGLE REVIEWS EDITABLE

ARTIGIANO PAZZO profile image

ARTIGIANO PAZZO

1,721

Cute Mini Octopus preview image

Cute Mini Octopus

McGybeer profile image

McGybeer

75,787

Palestinian Map In Geometric Pattern Design - 2 Parts preview image

Palestinian Map In Geometric Pattern Design - 2 Parts

PALIprints3D profile image

PALIprints3D

20

Dual Text Illusion v2.0 preview image

Dual Text Illusion v2.0

neverland forge profile image

neverland forge

1,374

Modular Mounting System preview image

Modular Mounting System

HeyVye profile image

HeyVye

69,147

Design for a pipe in two pieces - UPDATED AGAIN preview image

Design for a pipe in two pieces - UPDATED AGAIN

Fergy7 profile image

Fergy7

1