3.2.1 • Published 5 years ago

@jwc/jscad-hardware v3.2.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

hero image

view on npm npm module downloads Dependents

Twitter Follow

jscad-hardware

https://gitlab.com/johnwebbcole/jscad-hardware

This is a collection of jscad parts that model a common Imperial and Metric bolts and washers. These models use the jscad-utils library and return jscad-utils group objects.

Installation

Install @jwc/jscad-hardware using NPM:

npm install --save @jwc/jscad-hardware

Basic usage

To use the utilities, you need to include the jscad-hardware.jscad.

include('node_modules/jscad-utils/jscad-utils.jscad');
include('node_modules/jscad-hardware/jscad-hardware.jscad');

main() {
  util.init(CSG);

  var bolt = Hardware.Bolt(
    util.inch(1),
    ImperialBolts['5/16 hex'],
    'close'
  )

  return bolt.combine('head,thread');
}

Yeoman Generator

You can use the yeoman jscad generator which will create a project that uses this library.

Once you create your project, install jscad-hardware, and run gulp. Dragging the dist directory into http://openjscad.org/ will include this library.

Modify your main.jscad file to return a bolt object.

function main() {
  util.init(CSG);

  var bolt = Hardware.Bolt(util.inch(1), ImperialBolts["5/16 hex"], "close");

  return bolt.combine("head,thread");
}

// include:js
// endinject

bplus example

3.2.1

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

3.0.0-0

5 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago