SketchInterface
Implemented by
Methods
extrude
▸ extrude(extrusionDistance
, extrusionConfig?
): Shape3D
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
face
▸ face(): Face
Transforms the lines into a face. The lines should be closed.
Returns
Defined in
loftWith
▸ loftWith(otherSketches
, loftConfig
, returnShell?
): Shape3D
Loft between this sketch and another sketch (or an array of them)
You can also define a startPoint
for the loft (that will be placed
before this sketch) and an endPoint
after the last one.
You can also define if you want the loft to result in a ruled surface.
Note that all sketches will be deleted by this operation
Parameters
Name | Type |
---|---|
otherSketches | SketchInterface | SketchInterface [] |
loftConfig | LoftConfig |
returnShell? | boolean |
Returns
Defined in
revolve
▸ revolve(revolutionAxis?
, config?
): Shape3D
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 |