GithubHelp home page GithubHelp logo

sbambrough / dotscad Goto Github PK

View Code? Open in Web Editor NEW

This project forked from justinsdk/dotscad

0.0 0.0 0.0 8.11 MB

dotSCAD - An OpenSCAD library

Home Page: https://openhome.cc/eGossip/OpenSCAD/

License: GNU Lesser General Public License v3.0

OpenSCAD 100.00%

dotscad's Introduction

dotSCAD 2.1

Reduce the burden of 3D modeling in mathematics.

dotSCAD

license/LGPL

Introduction

Based on OpenSCAD 2019.05. For old OpenSCAD versions, please use dotSCAD 1.3. You can download all versions from the releases.

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.

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, include <line2d.scad>; first.

include <line2d.scad>;

line2d(p1 = [0, 0], p2 = [5, 0], width = 1);

Some module files are organized in a directory. For example, px_circle.scad exists in pixel directory. You have to prefix the directory name when including px_circle.

include <pixel/px_circle.scad>;
points = px_circle(radius = 10);
for(pt = points) {
    translate(pt) square(1);
}

Dependencies

Some modules depend on other modules. For example, the polyline2d module depends on the line2d module, so you also have to include <line2d.scad>; besides include <polyline3d.scad>;.

include <line2d.scad>;
include <polyline3d.scad>;

polyline2d(points = [[1, 2], [-5, -4], [-5, 3], [5, 5]], width = 1);

If OpenSCAD generates "WARNING: Ignoring unknown xxx function" or "WARNING: Ignoring unknown xxx module" when using one module of dotSCAD. Just try to include <xxx.scad>; or include <dir/xxx.scad> if xxx.scad exists in dir directory.

Too many dependencies? Because OpenSCAD doesn't provide namespace management, I personally think that exposing dependencies is better than hiding them. In this way, users can have their own way to manage dependencies. How to categorize dependencies is up to you. For example, you can include your commonly-used modules and functions in "commonly_used.scad" and then include <commonly_used.scad>; in the ".scad" file of your project.

If you really don't want to care about dependencies, include <dotSCAD.scad>; or use <dotSCAD.scad>; come to save you.

Documentation

Bugs and Feedback

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

About dotSCAD

I've been using OpenSCAD for years and created some funny things. Some of them include several important ideas and details. To prevent forgetfulness, I decided to write them down. Some examples developed in the documentation are useful so I elaborate them into this library.

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

dotscad's People

Contributors

justinsdk avatar lorf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.