Pencil
The most practical method for drawing a complex shape is undoubtedly using
sketch.pencil. This tool allows us to design our drawing point by point. To
use it, you simply need to initialize a sketch.
It’s important to note that for each method we’ll discuss, we can add _to to
use relative coordinates to the previous point.
Movement
move(x, y): With the move method, we can define where to start our shape on
the sketch.
Drawing
There are several methods available for drawing all the shapes for your design:
- 
line(x, y): Draws a line to the coordinates x, y.
- 
arc(x, y, radius): Draws an arc to x, y with a specified radius.
- 
tangent_arc(x, y): Draws an arc tangentially to the last primitive (arc or line)
- 
rounded_corner_then_line(x, y, radius): Draws a rounded corner followed by a line.
Getting the Shape
Once you have completed your design, there are two ways to get your shape to be used in extrusion or other operations:
- 
get_closed_shape: This will draw a line to your first point to close the shape if it isn’t already closed.
- 
close_with_mirror: This will mirror the pattern using the first-to-last point line as the mirror axis to close the shape.