Many 3D solids begin with simple 2D geometry, but the way that geometry becomes a 3D form depends on the shape you need. GstarCAD provides several modelling methods, and three of the most useful are EXTRUDE, SWEEP and LOFT. They may appear similar because all three can turn profiles into 3D geometry, but they solve very different modelling problems. The simplest way to choose between them is to ask: does the profile move straight, follow a path, or change shape between sections?
What is the main difference?
| Command | Basic idea | Best for |
|---|---|---|
EXTRUDE | Extend one profile through a height or direction | Prismatic and straight-sided forms |
SWEEP | Move one profile along a path | Pipes, rails, cables and curved forms |
LOFT | Blend through two or more profiles | Tapers and forms that change section |
A useful rule is:
EXTRUDE = profile + distance
SWEEP = profile + path
LOFT = profile + profile + transition
When should you use EXTRUDE?
EXTRUDE is usually the simplest option when a 2D profile needs to become a 3D object with a consistent cross-section.
For example, draw a closed rectangle measuring 120 × 80 mm and extrude it by 20 mm. The result is a rectangular solid whose profile remains the same from bottom to top.
- Create a closed profile such as a polyline or region.
- Type
EXTRUDEand press Enter. - Select the profile.
- Enter the required extrusion height, for example
20. - Use
3DORBITto inspect the resulting object.
EXTRUDE also provides options such as Direction, Path and Taper Angle, but for straightforward solids the most common workflow is simply a profile plus a height.
Use EXTRUDE when the section stays the same
If the start and end of the object have the same basic profile and the form mainly extends in one direction, EXTRUDE is usually the fastest solution.
When should you use SWEEP?
SWEEP is useful when the profile must follow a specific route instead of travelling in a simple straight direction.
The command needs two main ingredients: a profile and a path. GstarCAD moves the selected profile along that path to create the resulting solid or surface.
Typical uses include:
- pipes and tubes,
- handrails,
- cables and conduits,
- curved structural profiles,
- springs created along a helix.
For example, create a circle with a diameter of 30 mm and a curved polyline representing a pipe centreline.
- Create the circular profile.
- Draw the path that the pipe should follow.
- Run
SWEEP. - Select the circle and press Enter.
- Select the path.
The result is a pipe-like solid following the selected route.
SWEEP can also control alignment, base point, scale and twist, making it useful for more complex forms than a basic pipe.
When should you use LOFT?
LOFT solves a different problem. Instead of moving one profile, it creates a transition through two or more cross-sections.
The profiles can differ in size and shape. This is what makes LOFT especially useful for forms that gradually transform from one section into another.
Typical uses include:
- duct transitions,
- funnels,
- aerodynamic forms,
- product housings,
- transitions between different section sizes.
For a simple example, create a circle with a diameter of 80 mm. Copy another circle 100 mm above it and give the second circle a diameter of 40 mm.
- Create the first closed cross-section.
- Create the second cross-section at a different position.
- Run
LOFT. - Select the first section.
- Select the second section.
- Press Enter and create the transition.
The resulting model changes smoothly from the larger profile to the smaller one.
LOFT can do more than simple tapers
Cross-sections do not have to be identical. A loft can transition through several profiles, and guide curves can provide additional control over the final form.
Practical comparison: model three different components
Suppose you need to model three objects for the same mechanical assembly.
| Component | Geometry | Best command |
|---|---|---|
| Mounting spacer | Constant circular section, 50 mm high | EXTRUDE |
| Curved pipe | Constant circular section following bends | SWEEP |
| Duct reducer | Large rectangular section changing to a smaller section | LOFT |
The spacer needs no path or changing section, so EXTRUDE is sufficient. The pipe has the same section throughout but must follow a route, making SWEEP the better choice. The duct reducer changes from one cross-section to another, so LOFT is the natural solution.
Why are clean profiles important?
All three commands depend on good source geometry. If you want a 3D solid, start with suitable closed profiles. Gaps, overlapping segments or incorrect contours can prevent the expected solid from being created.
Where necessary, use closed polylines or convert suitable closed geometry into REGION objects before continuing with 3D modelling.
This is especially important when working with imported geometry, CNC profiles or outlines created from several separate lines and arcs.
Solid or surface?
Closed profiles are typically used when the goal is a 3D solid, while open profiles can produce surfaces in appropriate modelling operations. Check your profile before assuming the result will be a solid.
Which command should you choose?
Start with the simplest command that matches the geometry you need.
Use EXTRUDE when one profile simply needs depth or height. Use SWEEP when one profile must travel along a defined path. Use LOFT when the object must transition through several different cross-sections.
The productivity rule is simple: do not force every 3D object into an extrusion. Once you recognise whether the design is based on a distance, a path or changing sections, choosing the correct modelling command becomes much easier.