jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.61k stars 511 forks source link

MCAD scripts for openjscad: construction materials only #411

Open beamplayer opened 5 years ago

beamplayer commented 5 years ago

There are a few scripts on https://github.com/openscad/MCAD/ that have to do with real-life construction materials. Examples are https://github.com/openscad/MCAD/blob/master/gears.scad https://github.com/openscad/MCAD/blob/master/nuts_and_bolts.scad https://github.com/openscad/MCAD/blob/master/screw.scad https://github.com/openscad/MCAD/blob/master/units.scad https://github.com/openscad/MCAD/blob/master/metric_fastners.scad https://github.com/openscad/MCAD/blob/master/bearing.scad Also: some scad scripts (actuators, ...) over at https://gitlab.com/idea161/OpenSCAD-free-models

Perhaps these can be converted to openjscad format and either made available in a jscad/MCAD repo, or even made available as an option inside openjscad.org ?

In addition, perhaps you could also upload the openjscad gridbeam-script.scad I uploaded at https://github.com/beamplayer/gridbeam/blob/master/scripts/openjscad/gridbeam-script.scad ? It's not finished, but it wouldn't be too hard to make it. I got started on a version to replace the original MCAD/gridbeam.scad script (in OpenSCAD) too, you can find it at https://github.com/beamplayer/MCAD/blob/master/gridbeam.scad but again still unfinished. Should be easy to finish by someone more experienced then me though, so if someone has time/eager, please help out. Also see https://github.com/openscad/MCAD/pull/51 for a partial update to the MCAD/gridbeam script at the main openscad repo. Some features of the original gridbeam script are even left out (ie gridbeam shelf, ...). Look at https://github.com/beamplayer/gridbeam/blob/master/designs/models/scad_for_openjscad/G-logo.scad on how I would call the parts.

z3dev commented 5 years ago

@beamplayer Those are awesome!

We had a member convert some libraries from SCAD to JSCAD. Please take a look at http://www.thingiverse.com/thing:2307544

Also, we are hard at work on V2, but just cannot find enough time to finish. We want to support design sharing, components, etc. if you have any good ideas then let us know.

johnwebbcole commented 5 years ago

I saw this and realized I hadn't published my gears library yet. If you need gears, you can give this a try: https://gitlab.com/johnwebbcole/jscad-gears

It's a work in progress, but you can create gears that draw quickly.

faithhack commented 5 years ago

I maintain http://www.thingiverse.com/thing:2307544 but have held back a bit waiting for V2 to be more generally available, especially the changes in how code is modularized and included. I'll take a look at those SCAD modules tho'. I currently use the jscad-desktop with atom and npm to set up my projects, but it doesn't make sense to publish modules with explicit includes ( const { sphere } = require('@jscad/csg/api').primitives3d ) when the average user can't take advantage of it yet.

z3dev commented 3 years ago

V2 JSCAD has been released. It’s time to convert the world to JSCAD. :)