Sketches
Constructors
constructor
• new Sketches(sketches
)
Parameters
Name | Type |
---|---|
sketches | (Sketch | CompoundSketch )[] |
Defined in
Properties
sketches
• sketches: (Sketch
| CompoundSketch
)[]
Defined in
Methods
extrude
▸ extrude(extrusionDistance
, extrusionConfig?
): AnyShape
Extrudes the sketch to a certain distance.(along the default direction and origin of the sketch).
You can define another extrusion direction or origin,
It is also possible to twist extrude with an angle (in degrees), or to give a profile to the extrusion (the endFactor will scale the face, and the profile will define how the scale is applied (either linarly or with a s-shape).
Parameters
Name | Type |
---|---|
extrusionDistance | number |
extrusionConfig | Object |
extrusionConfig.extrusionDirection? | Point |
extrusionConfig.extrusionProfile? | ExtrusionProfile |
extrusionConfig.origin? | Point |
extrusionConfig.twistAngle? | number |
Returns
Defined in
faces
▸ faces(): AnyShape
Returns
Defined in
revolve
▸ revolve(revolutionAxis?
, config?
): AnyShape
Revolves the drawing on an axis (defined by its direction and an origin (defaults to the sketch origin)
Parameters
Name | Type |
---|---|
revolutionAxis? | Point |
config? | Object |
config.origin? | Point |
Returns
Defined in
wires
▸ wires(): AnyShape