dotSCAD

by JustinSDK

JustinSDK / dotSCAD

Reduce the burden of mathematics when playing OpenSCAD

274 Stars 43 Forks Last release: Not found Other 2.5K Commits 15 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

dotSCAD 2.4

Reduce the burden of mathematics/algorithm when playing OpenSCAD.

dotSCAD

license/LGPL

Introduction

Based on OpenSCAD 2019.05.

Some of my 3D models require complex mathematics/algorithm. I extract them into dotSCAD. Hope it helps when you're playing OpenSCAD.

OpenSCAD uses three library locations, the installation library, built-in library, and user defined libraries. It's convenient to set

OPENSCADPATH
. Check Setting OPENSCADPATH in OpenSCAD User Manual/Libraries for details.

I set

OPENSCADPATH
to the
src
folder of dotSCAD so all examples here start searching modules or functions from
src
.

Every module or function is located in the file which has the same name as the module or the function. For example, if you want to use the

line2d
module to draw a line,
use ;
first.
use ;

line2d(p1 = [0, 0], p2 = [5, 0], width = 1); </line2d.scad>

Some module files are organized in a directory. For example, pxcircle.scad exists in

pixel
directory. You have to prefix the directory name when including `pxcircle`.

use ;

points = px_circle(radius = 10); for(pt = points) { translate(pt) square(1); }

Examples

These examples incubate dotSCAD and dotSCAD refactors these examples. See examples.

examples

Documentation

2D Module

3D Module

Transformation

2D Function

2D/3D Function

Path

Extrusion

2D Shape

2D Shape Extrusion

Util

Matrix

Point Transformation


Turtle

Voxel

Part

Surface

Noise

Voronoi


Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

About dotSCAD

I've been using OpenSCAD for years. Some of my works include reusable implementations so I elaborate them into this library.

The idea of the name dotSCAD comes from the filename extension ".scad" of OpenSCAD.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.