You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

jscad-hardware

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscad-hardware

jscad parts library for screws, washers and nuts


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

view on npm npm module downloads

jscad-hardware

https://johnwebbcole.github.io/jscad-hardware/

bplus example

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 jscad-hardware using NPM:

npm install --save 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

Keywords

FAQs

Package last updated on 08 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc