# hardware

# Modules

jscad-hardware : Object

A gear moduel for openJSCAD. parts example

# Members

BOM

Bill of material object

# Functions

BOMadd(bomkey)

Increment the bom value for a single bomkey.

# jscad-hardware : Object

A gear moduel for openJSCAD. parts example

Example

include('jscad-utils-color.jscad');

function mainx(params) {
  util.init(CSG);

  // draws a blue hexagon
  return Parts.Hexagon(10, 5).color('blue');
}

# jscad-hardware.Washer(washer, fit)

Create a washer group from a washer type.

Kind: static method of jscad-hardware

Param Type Description
washer Object Washer type object.
fit String Clearance to add to group (tap

# jscad-hardware.PanHeadScrew(headDiameter, headLength, diameter, length, clearLength, options)

Creates a Group object with a Pan Head Screw.

Kind: static method of jscad-hardware

Param Type Description
headDiameter number Diameter of the head of the screw
headLength number Length of the head
diameter number Diameter of the threaded shaft
length number Length of the threaded shaft
clearLength number Length of the clearance section of the head.
options object Screw options include orientation and clerance scale.

# jscad-hardware.HexHeadScrew(headDiameter, headLength, diameter, length, clearLength, options)

Creates a Group object with a Hex Head Screw.

Kind: static method of jscad-hardware

Param Type Description
headDiameter number Diameter of the head of the screw
headLength number Length of the head
diameter number Diameter of the threaded shaft
length number Length of the threaded shaft
clearLength number Length of the clearance section of the head.
options object Screw options include orientation and clerance scale.

# jscad-hardware.FlatHeadScrew(headDiameter, headLength, diameter, length, clearLength, options)

Create a Flat Head Screw

Kind: static method of jscad-hardware

Param Type Description
headDiameter number head diameter
headLength number head length
diameter number thread diameter
length number thread length
clearLength number clearance length
options object options

# jscad-hardware~Nut(nut, fit) ⇒ type

F is the width across the faces, C is the width across the points, and H is the height. D is the basic diameter. [F, C, H, D]

Kind: inner method of jscad-hardware
Returns: type - {description}

Param Type Description
nut type {description}
fit type {description}

# BOM

Bill of material object

Kind: global variable

# BOMadd(bomkey)

Increment the bom value for a single bomkey.

Kind: global function

Param Type
bomkey String