Rotating and extruding to create parts (Should know)
2D drawings are converted into 3D models either by extruding them along an axis, or by rotating them around an axis.
Getting ready
Use the Draft workbench to draw a closed profile of a part. For our example, we're using the timing pulley profile from the Modeling a simple part with the Draft workbench (Must know) recipe.
How to do it...
Switch to the Draft workbench.
Select the wire and click on the Upgrade button to convert it to a face.
Switch to the Part workbench.
Press the Revoke a selected shape button:
In the Revolve dialog, select the shape to rotate.
Select the axis around which to revolve. For our example, use the Y axis. Leave the other settings unchanged and click on OK.
The revolved object is added to the project.
How it works...
FreeCAD has two kinds of wire objects. Draft wires, called dwire in later versions, have additional features and properties on the Data tab. The wire used in our example contains arcs and is a regular wire. If you were to rotate the wire without upgrading it to a face first, the result you would see on screen would look exactly the same. However, the object would be a hollow shell. This can cause problems if you do additional Boolean operations. By rotating a face instead of a wire, the area swept out by the rotation is a solid.
Extruding an object works similarly. A shape is selected and parameters are given for the direction and distance to extrude. Applying an extrusion to our original wire gives a very different result.
The extrude and rotate tools in the Part workbench can be used on many kinds of objects including sketches. The kind of object produced depends on the original object.
Input shape |
Output shape |
---|---|
Vertex |
Edge |
Edge |
Face |
Wire (closed) |
Shell |
Dwire |
Solid |
Face |
Solid |
Shell |
Compound Solid |
Sketch |
Shell |
The Part Design workbench has its own tools for rotating and extruding (called padding) sketches to create parts. The Part Design pad and rotation tools can only be used on sketches. They always create solids if the sketch is closed and will fail otherwise.
There's more...
FreeCAD has another tool for turning 2D geometry into 3D objects.
Lofting
Two or more wires can be used to define the bounds of a solid and the loft tool will create a solid by sweeping the area between them. In the following screenshot, two rectangular shapes were positioned one above the other and rotated slightly. The loft tool creates a twisted cuboid by connecting the two: