module:extras/gearmesh
The extras/gearmesh.js
module.
To import all symbols in this module, either of the following can be used:
import * from "extras/gearmesh.js"; // -- or -- import * as CustomModuleName from "extras/gearmesh.js";
Methods
- createGear
Builds a mesh buffer representing a gear centered at the origin.
### (static) module:extras/gearmesh.createGear(innerRadius, outerRadius, thickness, teeth, toothDepth)
Builds a mesh buffer representing a gear centered at the origin.
Parameters
innerRadius
(Type: number)
Inner radius of the gear wheelouterRadius
(Type: number)
Outer radius of the gear wheel, at the valleys between teeth.thickness
(Type: number)
Thickness of the gearteeth
(Type: number)
Number of teeth.toothDepth
(Type: number)
Depth of each gear tooth.
Return Value
Return value. (Type: MeshBuffer)