Giter VIP home page Giter VIP logo

scad-utils's Introduction

scad-utils

home, sweet home

[email protected]:michaeldallen/scad-utils.git

adopt me

git subtree add  --message 'mtools git subtree add locator - scad-utils\[email protected]:michaeldallen/scad-utils.git\nprefix=scad-utils\nbranch=master' --prefix scad-utils [email protected]:michaeldallen/scad-utils.git master --squash

inherit updates from the mother ship

git subtree pull --prefix scad-utils [email protected]:michaeldallen/scad-utils.git master --squash

push our updates to the mother ship

git subtree push --prefix scad-utils [email protected]:michaeldallen/scad-utils.git master --squash

scad-utils

Utility libraries for OpenSCAD

Morphology

contains basic 2D morphology operations

inset(d=1)             - creates a polygon at an offset d inside a 2D shape
outset(d=1)            - creates a polygon at an offset d outside a 2D shape
fillet(r=1)            - adds fillets of radius r to all concave corners of a 2D shape
rounding(r=1)          - adds rounding to all convex corners of a 2D shape
shell(d,center=false)  - makes a shell of width d along the edge of a 2D shape
                       - positive values of d places the shell on the outside
                       - negative values of d places the shell on the inside
                       - center=true and positive d places the shell centered on the edge

Examples

With a basic sample polygon shape,

module shape() {
    polygon([[0,0],[1,0],[1.5,1],[2.5,1],[2,-1],[0,-1]]);
}

and $fn=32;.

  • inset(d=0.3) shape();

  • outset(d=0.3) shape();

  • rounding(r=0.3) shape();

  • fillet(r=0.3) shape();

*shell(d=0.3) shape();

*shell(d=-0.3) shape();

*shell(d=0.3,center=true) shape();

Mirror

contains simple mirroring functions

mirror_x()
mirror_y()
mirror_z()

example:

module arrow(l=1,w=.6,t=0.15) {
    mirror_y() polygon([[0,0],[l,0],[l-w/2,w/2],[l-w/2-sqrt(2)*t,w/2],[l-t/2-sqrt(2)*t,t/2],[0,t/2]]);
}

scad-utils's People

Contributors

kintel avatar oskarlinde avatar michaeldallen avatar t-paul avatar wilmardo avatar wolfwood avatar

Watchers

James Cloos avatar

scad-utils's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

terraform
main.tf
  • aws ~> 5.0
  • http 3.4.2
  • kubernetes >= 2.13.1
  • local 2.5.1
  • tls 4.0.5

  • Check this box to trigger a request for Renovate to run again on this repository

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.