Builds positive mouldings and negative moulds for various ornaments.
These would then be subtracted from a shape to produce the final result.
Input 2D profiles must be centred at (0, 0, 0)
- 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 |
- 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 |
- 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 |
- Source:
sunkenPanelCirc(opts, geomProfile)
Negative mould for a circular sunken panel, to be placed on a wall/ceiling surface
Parameters:
Name |
Type |
Description |
opts |
Object
|
Properties
Name |
Type |
Description |
radius |
number
|
panel radius |
|
geomProfile |
geom2.Geom2
|
2D positive cross-section profile for edge |
- Source:
sunkenPanelRect(opts, geomProfile)
Negative mould for a rectangular sunken panel, to be placed on a wall/ceiling surface
Parameters:
Name |
Type |
Description |
opts |
Object
|
Properties
Name |
Type |
Description |
edge |
Array.<number>
|
size (x, y) |
|
geomProfile |
geom2.Geom2
|
2D positive cross-section profile for edge |
- Source: