vertex()
Add a point to the current path (between beginShape() and endShape()).
The first vertex() moves to the point using the lead-in chosen by beginShape();
each later vertex() extrudes to the point. z is optional: supply it to change
layer height, or omit it to stay in the current z-plane (like extrudeToXY()).
vertex() takes only coordinates. To vary speed or extrusion along a path, set
printSpeed() / speed() or extrusionMultiplier() between vertices. For a one-off
explicit extrusion amount, use e.g., extrudeTo().
Parameters
| Name | Type | Description |
|---|---|---|
x | number | Target X position in mm. |
y | number | Target Y position in mm. |
z? | number | Target Z position in mm. Defaults to the current Z if omitted. |
Examples
Syntax
fab.vertex(x, y, [z])