Class: ThreeDModule

ThreeDModule(options)

new ThreeDModule(options)

Parameters:
Name Type Description
options Options
Source:

Members

depth :number

The depth of the model.
Type:
  • number
Source:

height :number

The height of the model.
Type:
  • number
Source:

output :string

The extracted output from execution of the .scad file.
Type:
  • string
Source:

triangles :Array.<Triangle>

The triangles which make up the model. See https://en.wikipedia.org/wiki/Triangle_mesh.
Type:
Source:

vertices :Array.<Vertex>

A list of 3D vertices returned from the .scad file execution.
Type:
Source:

width :number

The width of the model.
Type:
  • number
Source:

Methods

isWithinBoundingBox(boundingBox) → {boolean}

Parameters:
Name Type Description
boundingBox BoundingBox The 3D box which the model should fit inside. It is considered 'within' if any coordinate is equal to, or within the box.
Source:
Returns:
True if the model fits within the bounding box.
Type
boolean