PolyScript

A parametric CAD language for describing 3D models in concise code.
box 40 30 10 | fillet 2 | faces top | hole 5
✎ Edit

Pipe | simple shapes together and refine. That’s all.

What is PolyScript?

PolyScript is a parametric CAD language for describing 3D models in concise code. Built on the OpenCascade kernel, it is designed for easier and safer 3D modeling.

Concise and flexible syntax

  • Concise DSL – No parentheses needed for function calls. Just write box 80 60 10
  • Pipeline | – Chain operations left to right. Reading order = execution order
  • Declarative modeling – Describe “create → select → modify” declaratively
  • Shareable – Easy to share parts and safe to run in a browser
# Create a case, round the edges, and cut a hole in the side
box 100 60 40
 | faces >Z | shell 2
 | edges =Z | fillet 3
 | faces right | circle 4 | cut
✎ Edit

For 3D printing, DIY, and education

PolyScript is ideal for:

  • 3D Printing – Change parameters to produce parts of different dimensions
  • DIY / Makers – Quickly design practical parts: cases, brackets, jigs, and more
  • Education – Simple syntax that anyone can pick up, from kids to adults, no programming experience required

Features

  • Write less — Common operations need no parentheses
  • Read left to right — Operations flow through pipes
  • Parametric — Variables and functions let you change dimensions freely
  • Runs in the browser — Safe execution in a sandbox

Try it

Use PolyScript Playground right in your browser. No installation needed.

Documentation

Why we built PolyScript

Parametric CAD tools that describe 3D models with code are gaining attention alongside advances in AI. Among them, CadQuery is an excellent CAD framework that lets you program any shape in Python.

However, being a general-purpose programming language is itself a weakness. You cannot safely execute 3D models created by others. To share our work safely, a DSL is essential.

Easy enough for children with no programming experience to use – that is the design concept behind PolyScript.

Acknowledgements

PolyScript is built on top of many outstanding open-source projects.

  • Open CASCADE Technology — The powerful B-Rep modeling engine used as PolyScript’s 3D kernel. It handles everything from boolean operations and fillets to STEP export.
  • OpenSCAD — The pioneer that forged the culture of “writing 3D models in code.” It was the starting point for PolyScript.
  • CadQuery — An elegant parametric CAD API for Python. PolyScript’s Python implementation uses CadQuery’s OCP bindings, and its pipeline syntax was a major influence.

Our deep gratitude goes to these projects and their communities.


Getting Started

Core concepts and your first model.

Tutorial

Build 3 models hands-on.

Language Reference

Full details on every operation.

Cheat Sheet

Quick reference to keep at hand.