Namespace: moulding

components.moulding

Builds positive mouldings and negative moulds for various 2D profiles.
Source:

Methods

circularMoulding(opts, geomProfile)

Positive moulding for a cylinder with the given 2D profile placed onto the edge.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
radius number Cylinder radius.
height number Cylinder height.
segments number Cylinder height.
geomProfile geom2.Geom2 2D positive cross-section profile
Since:
  • 0.12.0
Source:

cuboidMoulding(opts, geomProfile)

Positive moulding for a cuboid with the given 2D profile placed onto all the side edges.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
size Array.<number> size (x, y, z)
geomProfile geom2.Geom2 2D positive cross-section profile
Since:
  • 0.12.0
Source:

cuboidMouldingOneEdge(opts, geomProfile)

Builds a cuboid with given 2D profile placed on one edge.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
size Array.<number> size (x, y, z)
alignment string where to align when profile size differs from base cuboid ('top' | 'middle' | 'bottom'). Defaults to 'middle'
geomProfile geom2.Geom2 2D positive cross-section profile
Since:
  • 0.12.0
Source:

cuboidMouldingTwoEdges(opts, geomProfile)

Positive moulding for a cuboid with the given 2D profile placed onto two opposing side edges.
Parameters:
Name Type Description
opts Object
Properties
Name Type Description
size Array.<number> size (x, y, z)
axis 'x' | 'y' string to specify which axis to place the profile on. Defaults to 'x'
geomProfile geom2.Geom2 2D positive cross-section profile
Since:
  • 0.13.3
Source: