Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
FreeCAD

You're reading from   FreeCAD Solid Modeling with the power of Python with this book and ebook.

Arrow left icon
Product type Paperback
Published in Sep 2012
Publisher Packt
ISBN-13 9781849518864
Length 70 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Brad Collette Brad Collette
Author Profile Icon Brad Collette
Brad Collette
Daniel Falck Daniel Falck
Author Profile Icon Daniel Falck
Daniel Falck
Arrow right icon
View More author details
Toc

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...

  1. Switch to the Draft workbench.

  2. Select the wire and click on the Upgrade button to convert it to a face.

  3. Switch to the Part workbench.

  4. Press the Revoke a selected shape button:

  5. In the Revolve dialog, select the shape to rotate.

  6. Select the axis around which to revolve. For our example, use the Y axis. Leave the other settings unchanged and click on OK.

  7. 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:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image