Parametric 2D Sketcher
The Parametric 2D Sketcher is a powerful feature in Rayforge that allows you to create and edit precise, constraint-based 2D designs directly within the application. This feature enables you to design custom parts from scratch without needing external CAD software.
Overview
The sketcher provides a complete set of tools for creating geometric shapes and applying parametric constraints to define precise relationships between elements. This approach ensures your designs maintain their intended geometry even when dimensions are modified.
Creating and Editing Sketches
Creating a New Sketch
- Click the "New Sketch" button in the toolbar or use the main menu
- A new empty sketch workspace will open with the sketch editor interface
- Start creating geometry using the drawing tools from the pie menu or keyboard shortcuts
- Apply constraints to define relationships between elements
- Click "Finish Sketch" to save your work and return to the main workspace
Editing Existing Sketches
- Double-click on a sketch-based workpiece in the main workspace
- Alternatively, select a sketch and choose "Edit Sketch" from the context menu
- Make your modifications using the same tools and constraints
- Click "Finish Sketch" to save changes or "Cancel Sketch" to discard them
Creating 2D Geometry
The sketcher supports creating the following basic geometric elements:
- Lines: Draw straight line segments between points
- Circles: Create circles by defining a center point and radius
- Arcs: Draw arcs by specifying a center point, start point, and end point
- Rectangles: Draw rectangles by specifying two opposite corners
- Rounded Rectangles: Draw rectangles with rounded corners
- Text Boxes: Add text elements to your sketch
- Fills: Fill closed regions to create solid areas
These elements form the foundation of your 2D designs and can be combined to create complex shapes. Fills are particularly useful for creating solid regions that will be engraved or cut as a single piece.
Parametric Constraint System
The constraint system is the core of the parametric sketcher, allowing you to define precise geometric relationships:
Geometric Constraints
- Coincident: Forces two points to occupy the same location
- Vertical: Constrains a line to be perfectly vertical
- Horizontal: Constrains a line to be perfectly horizontal
- Tangent: Makes a line tangent to a circle or arc
- Perpendicular: Forces two lines, a line and an arc/circle, or two arcs/circles to meet at 90 degrees
- Point on Line/Shape: Constrains a point to lie on a line, arc, or circle
- Collinear: Forces two or more lines to lie on the same infinite line
- Symmetry: Creates symmetrical relationships between elements. Supports two modes:
- Point Symmetry: Select 3 points (first is the center)
- Line Symmetry: Select 2 points and 1 line (the line is the axis)
Dimensional Constraints
- Distance: Sets the exact distance between two points or along a line
- Diameter: Defines the diameter of a circle
- Radius: Sets the radius of a circle or arc
- Angle: Enforces a specific angle between two lines
- Aspect Ratio: Forces the ratio between two distances to be equal to a specified value
- Equal Length/Radius: Forces multiple elements (lines, arcs, or circles) to have the same length or radius
- Equal Distance: Makes two line segments the same length (different from Equal Length/Radius, which can also apply to arcs and circles)
Pie Menu Interface
The sketcher features a context-aware pie menu that provides quick access to all drawing and constraint tools. This radial menu appears when you right-click in the sketch workspace and adapts based on your current context and selection.
The pie menu items dynamically show available options based on what you have selected. For example, when clicking on empty space, you'll see drawing tools. When clicking on selected geometry, you'll see applicable constraints.

Keyboard Shortcuts
The sketcher provides keyboard shortcuts for efficient workflow:
Tool Shortcuts
Space: Select toolG+L: Line toolG+A: Arc toolG+C: Circle toolG+R: Rectangle toolG+O: Rounded Rectangle toolG+F: Fill Area toolG+T: Text Box toolG+N: Toggle construction mode on selection
Action Shortcuts
C+H: Add Chamfer cornerC+F: Add Fillet corner
Constraint Shortcuts
H: Apply Horizontal constraintV: Apply Vertical constraintN: Apply Perpendicular constraintT: Apply Tangent constraintE: Apply Equal constraintOorC: Apply Alignment constraint (Coincident)S: Apply Symmetry constraintK+D: Apply Distance constraintK+R: Apply Radius constraintK+O: Apply Diameter constraintK+A: Apply Angle constraintK+X: Apply Aspect Ratio constraint