From Sketch to 3D: Parametric Modeling 101
A beginner's guide to parametric modeling: sketches, constraints, dimensions, features, and how a deterministic solver turns 2D drawings into 3D parts.
From Sketch to 3D: Parametric Modeling 101
If you are new to CAD, the concept of parametric modeling can seem abstract. You draw a rectangle, and someone tells you to “constrain it.” You extrude a shape, and someone asks about your “feature tree.” This guide explains the parametric modeling workflow from first principles --- no prior CAD experience assumed.
By the end, you will understand how every major CAD tool (SolidWorks, Fusion 360, CATIA, Inventor, and newer tools like NeuroCAD) turns a 2D sketch into a precise 3D part, and why the parametric approach is the foundation of modern mechanical design.
What “Parametric” Means
A parametric model is defined by parameters --- named values that control dimensions and relationships. When you change a parameter, the model updates automatically to reflect the new value.
Consider a simple example: a rectangular plate with a hole in the center.
In a non-parametric approach, you draw a rectangle with specific coordinates (0,0 to 100,50) and a circle at (50,25) with radius 10. If you later want the plate to be 120 mm wide, you redraw everything. The hole is no longer centered because its position was defined by absolute coordinates.
In a parametric approach, you define:
- Width = 100 mm
- Height = 50 mm
- Hole diameter = 20 mm
- Hole position: centered on the plate
Now, when you change Width to 120, the hole automatically moves to (60, 25) because “centered” is a relationship, not a coordinate. The model updates itself.
This is the core idea: define intent (centered, tangent, equal, symmetric) rather than coordinates. The model preserves your intent when parameters change.
The Sketch
Every 3D feature starts with a 2D sketch. A sketch is a collection of geometric entities (lines, arcs, circles, splines) drawn on a plane. The sketch plane can be a principal plane (XY, XZ, YZ) or any flat face of an existing feature.
Sketch Entities
The basic building blocks:
- Line. Defined by two endpoints. The most common sketch entity.
- Arc. A circular segment defined by center, radius, start angle, and end angle. Or by three points.
- Circle. A special case of an arc that closes on itself. Defined by center and radius.
- Spline. A smooth curve through a set of control points. Used for freeform shapes.
- Point. A reference location used for construction or as the center of other entities.
- Construction geometry. Lines, arcs, or circles that serve as references but are not part of the profile. Shown as dashed lines. Used for symmetry axes, reference diameters, and layout guides.
Drawing a Sketch
When you first draw sketch entities, their positions and sizes are approximate. You click and drag to create a rough shape that captures the topology (how many lines, how they connect, where the arcs go). You do not need to get exact dimensions right while drawing --- that comes next.
This is a common source of confusion for beginners: the sketch does not need to be precise when first drawn. Precision comes from constraints and dimensions.
Constraints
Constraints are geometric relationships between sketch entities. They capture design intent --- the “why” behind the geometry, not just the “where.”
Geometric Constraints
These define relationships without specifying numerical values:
- Coincident. Two points are at the same location. Example: the endpoint of one line touches the endpoint of another. This is how you create a closed profile.
- Horizontal. A line is parallel to the X axis of the sketch plane.
- Vertical. A line is parallel to the Y axis.
- Parallel. Two lines point in the same direction (but may be offset).
- Perpendicular. Two lines meet at 90 degrees.
- Tangent. A line meets an arc smoothly, without a kink. The transition is continuous.
- Equal. Two lines have the same length, or two arcs have the same radius.
- Symmetric. Two entities are mirror images across a construction line.
- Concentric. Two arcs or circles share the same center.
- Midpoint. A point lies at the midpoint of a line.
- Collinear. Two lines lie on the same infinite line.
- Fixed. An entity is locked in place and cannot move. Use sparingly --- over-fixing removes the parametric flexibility you are trying to create.
How Constraints Work
Each constraint is a mathematical equation. “Horizontal” means the Y coordinates of the line’s two endpoints are equal: y1 = y2. “Perpendicular” means the dot product of the two line direction vectors is zero: d1 . d2 = 0. “Tangent” between a line and a circle means the perpendicular distance from the circle center to the line equals the radius.
The constraint solver collects all these equations and solves the system simultaneously to find positions for all sketch entities that satisfy all constraints. This is a system of nonlinear equations, typically solved by Newton-Raphson iteration.
Under-Constrained, Fully Constrained, Over-Constrained
The constraint solver reports the status of the sketch:
- Under-constrained (blue in most CAD tools). The sketch has remaining degrees of freedom. Some entities can still move. You need to add more constraints or dimensions.
- Fully constrained (black/green). Every entity is uniquely determined. There is exactly one solution. This is the target state.
- Over-constrained (red). There are conflicting or redundant constraints. The solver cannot find a solution. You need to remove a constraint or dimension.
A fully constrained sketch is deterministic: given the same constraints and dimensions, it always produces the same geometry. This is essential for reliable parametric models.
Dimensions
Dimensions are numerical constraints. They specify sizes and distances:
- Linear dimension. The distance between two points, or the length of a line.
- Angular dimension. The angle between two lines.
- Radial/diameter dimension. The radius or diameter of an arc or circle.
- Ordinate dimension. The distance from a datum (reference point) to a feature, measured along one axis.
Dimensions are parameters. When you set “Width = 100 mm,” you are creating a named parameter with a value of 100. You can later change this value, and the sketch will update.
Driving vs. Driven Dimensions
- Driving dimensions control the geometry. You set them, and the geometry adapts.
- Driven dimensions are measured from the geometry. They display a value but do not control it. If you try to add a driving dimension that conflicts with existing constraints, the solver will report an over-constrained sketch.
Equations and Linked Dimensions
Most CAD tools let you define dimensions as expressions:
Hole_diameter = Width / 10
Fillet_radius = Hole_diameter / 4
This creates parametric relationships between features. Change the width, and the hole and fillet scale proportionally. This is one of the most powerful aspects of parametric modeling --- relationships propagate automatically.
From Sketch to Feature
A fully constrained sketch is a 2D profile. To create a 3D solid, you apply a feature operation:
Extrude
Push the 2D profile along a direction (usually perpendicular to the sketch plane) by a specified distance. The result is a prismatic solid. The simplest and most common feature operation.
Options:
- Blind. Extrude to a fixed distance.
- Through all. Extrude until the solid exits all existing geometry.
- Up to surface. Extrude until the profile meets a specified surface.
- Symmetric. Extrude equal distances in both directions from the sketch plane.
Revolve
Rotate the 2D profile around an axis. The result is a solid of revolution: cylinders, cones, toroids, and complex axisymmetric shapes.
Sweep
Move the 2D profile along a 3D path (a curve or set of edges). The result follows the path. Used for tubes, channels, rails, and complex routing.
Loft
Connect two or more 2D profiles at different positions with smooth transitions. The result is a blended solid that interpolates between the profiles. Used for aerodynamic shapes, bottle bodies, and transitions between different cross-sections.
Cut
Any of the above operations can be used in “cut” mode, which removes material instead of adding it. A circular sketch extruded as a cut creates a hole. A rectangular sketch extruded as a cut creates a pocket.
The Feature Tree
Every feature you create is recorded in the feature tree (also called the model tree, design tree, or history tree). The tree is an ordered list of operations:
- Base sketch on XY plane
- Extrude (50 mm, add)
- Sketch on top face
- Extrude cut (through all)
- Fillet (edges, R = 3 mm)
- Chamfer (bottom edges, 1x1 mm)
The tree records the complete history of how the part was built. Any feature can be edited: double-click the extrude to change the depth, double-click the sketch to change dimensions, drag features to reorder them.
The feature tree is what makes parametric modeling reversible. Unlike direct modeling (which manipulates the final geometry without history), parametric modeling preserves every design decision and lets you change any decision at any time.
Feature Dependencies
Features depend on each other. The cut on step 4 depends on the face created by the extrude on step 2. The fillet on step 5 depends on the edges created by the cut on step 4. These dependencies form a directed graph.
If you delete the extrude on step 2, everything that depends on it (the sketch on its top face, the cut, the fillet) must also be deleted or redefined. This is why feature ordering matters and why a well-structured feature tree makes a part easier to modify.
The Constraint Solver
Under the hood, every parametric CAD tool uses a constraint solver to compute the sketch geometry. The solver takes:
Inputs:
- Initial positions of all sketch entities (from the user’s approximate drawing).
- All geometric constraints (coincident, parallel, tangent, etc.).
- All dimensional constraints (lengths, angles, radii).
Output:
- Final positions of all entities that satisfy all constraints simultaneously.
The solver works by formulating the constraints as a system of equations and solving it using numerical methods (typically Newton-Raphson with various stabilization techniques). A good solver:
- Converges in a few iterations for well-posed problems.
- Reports which constraints are conflicting when the system is over-constrained.
- Reports which entities are free when the system is under-constrained.
- Is deterministic: the same input always produces the same output.
NeuroCAD’s constraint solver is built in Rust and designed for deterministic behavior. Given the same sketch and constraints, it produces the same geometry every time, on every platform. This matters for collaborative design, version control, and regression testing.
A Complete Example
Let us walk through designing a simple mounting bracket:
- Create a sketch on the XY plane. Draw a rectangle and a circle.
- Add constraints:
- Rectangle corners are coincident (closed profile).
- Bottom edge is horizontal.
- Left edge is vertical.
- Bottom-left corner is at the origin (coincident with origin point).
- Circle is concentric with the rectangle center (midpoint of diagonal).
- Add dimensions:
- Width = 60 mm.
- Height = 40 mm.
- Circle diameter = 12 mm.
- Extrude the profile 5 mm (blind, add). The circle creates a hole automatically because the extrude recognizes closed inner profiles as cuts.
- Create a second sketch on the top face. Draw two small circles at symmetric positions.
- Constrain the circles: equal radii, symmetric about the vertical centerline, 10 mm from the top edge.
- Dimension the circles: diameter = 5 mm.
- Extrude cut through all. Now you have a bracket with a central hole and two mounting holes.
- Fillet all vertical edges with R = 2 mm.
The feature tree has 5 entries. Every dimension is a named parameter. Change the width from 60 to 80, and the bracket widens, the central hole stays centered, the mounting holes stay symmetric and 10 mm from the top. The entire model updates in milliseconds.
Best Practices for Beginners
- Sketch simply. Each sketch should define one feature. Do not try to capture the entire part in one sketch.
- Fully constrain every sketch. An under-constrained sketch can shift unexpectedly when parameters change.
- Use construction geometry. Centerlines and reference circles make symmetric constraints easier to apply.
- Name your dimensions. “Width,” “Hole_Dia,” “Wall_Thickness” are much more useful than “D1,” “D2,” “D3” when you return to the model later.
- Think about dependencies. Build features on stable references (origin planes, datum planes) rather than on faces that might change.
- Use equations for related dimensions. If the hole should always be 1/5 of the width, define it as
Width / 5, not as a separate number.
What Comes Next
Parametric modeling is the foundation. Once you understand sketches, constraints, and features, you can move into:
- Assembly modeling: Combining multiple parts with mates (constraints between parts).
- Sheet metal design: Flat patterns, bend allowances, and unfolding.
- Surface modeling: Complex freeform shapes using NURBS surfaces.
- Implicit modeling: Field-based geometry for lattices, organic shapes, and topology optimization results.
Each of these builds on the parametric sketch-to-feature workflow. The concepts you learn here --- constraints, parameters, feature dependencies --- apply everywhere in modern CAD.
Start with a simple part. Constrain it fully. Change a dimension and watch the model update. That moment when the geometry adapts to your intent is when parametric modeling clicks.