Part Module: Difference between revisions

From FreeCAD Documentation
(Wording)
(Simplified the descriptions in === Primitives ===)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:52-->
<!--T:52-->
{{Docnav
{{Docnav
Line 11: Line 12:
<!--T:66-->
<!--T:66-->
[[Image:Workbench_Part.svg|thumb|128px|Part workbench icon]]
[[Image:Workbench_Part.svg|thumb|128px|Part workbench icon]]

</translate>
</translate>
{{TOCright}}
{{TOCright}}
<translate>
<translate>

== Introduction == <!--T:1-->
== Introduction ==

<!--T:1-->
The solid modelling capabilities of FreeCAD are based on the [[OpenCASCADE|OpenCASCADE Technology]] (OCCT) kernel, a professional-grade CAD system that features advanced 3D geometry creation and manipulation. The [[Image:Workbench_Part.svg|24px]] [[Part_Workbench|Part Workbench]] is a layer sitting on top of the OCCT libraries, that gives the user access to OCCT geometric primitives and functions. Essentially all 2D and 3D drawing functions in every workbench ([[Image:Workbench_Draft.svg|24px]] [[Draft_Workbench|Draft]], [[Image:Workbench_Sketcher.svg|24px]] [[Sketcher_Workbench|Sketcher]], [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench|PartDesign]], etc.), are based on these functions exposed by the Part Workbench. Therefore, the Part Workbench is considered the core component of the modelling capabilities of FreeCAD.
The solid modelling capabilities of FreeCAD are based on the [[OpenCASCADE|OpenCASCADE Technology]] (OCCT) kernel, a professional-grade CAD system that features advanced 3D geometry creation and manipulation. The [[Image:Workbench_Part.svg|24px]] [[Part_Workbench|Part Workbench]] is a layer sitting on top of the OCCT libraries, that gives the user access to OCCT geometric primitives and functions. Essentially all 2D and 3D drawing functions in every workbench ([[Image:Workbench_Draft.svg|24px]] [[Draft_Workbench|Draft]], [[Image:Workbench_Sketcher.svg|24px]] [[Sketcher_Workbench|Sketcher]], [[Image:Workbench_PartDesign.svg|24px]] [[PartDesign_Workbench|PartDesign]], etc.), are based on these functions exposed by the Part Workbench. Therefore, the Part Workbench is considered the core component of the modelling capabilities of FreeCAD.


Line 35: Line 40:
The tools are located in the {{MenuCommand|Part}} menu or the {{MenuCommand|Measure}} menu.
The tools are located in the {{MenuCommand|Part}} menu or the {{MenuCommand|Measure}} menu.


===Primitives=== <!--T:6-->
=== Primitives === <!--T:6-->


<!--T:36-->
<!--T:36-->
Line 41: Line 46:


<!--T:37-->
<!--T:37-->
* [[Image:Part_Box.svg|32px]] [[Part_Box|Box]]: Draws a box by specifying its dimensions
* [[Image:Part_Box.svg|32px]] [[Part_Box|Box]]: Creates a box.


* [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]]: Draws a cylinder by specifying its dimensions
* [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]]: Creates a cylinder.


* [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]]: Draws a sphere by specifying its dimensions
* [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]]: Creates a sphere.


* [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]]: Draws a cone by specifying its dimensions
* [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]]: Creates a cone.


* [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]]: Draws a torus (ring) by specifying its dimensions
* [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]]: Creates a torus (ring).


* [[File:Part_Tube.svg|32px]] [[Part_Tube|Tube]]: draws a tube by specifying its internal radius and external radius. {{Version|0.19}}
* [[File:Part_Tube.svg|32px]] [[Part_Tube|Tube]]: Creates a tube. {{Version|0.19}}


* [[Image:Part_Primitives.svg|32px]] [[Part_Primitives|Primitives]]: A tool to add any of the defined geometric primitives.
* [[Image:Part_Primitives.svg|32px]] [[Part_Primitives|Primitives]]: A tool to create one of the following primitives.
**[[Image:Part_Plane.svg|32px]] [[Part_Plane|Plane]]: inserts a simple parametric plane 10 x 10 mm, with the parameters of position, length, and width.
**[[Image:Part_Plane.svg|32px]] [[Part_Plane|Plane]]: Creates a plane.
**[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box|Box/Cube]]: inserts a parametric, [http://en.wikipedia.org/wiki/Cuboid#Rectangular_cuboid rectangular cuboid], geometric primitive into the active document. The same tool as [[Image:Part_Box.svg|32px]] [[Part_Box|Box]].
**[[Image:Tree_Part_Box_Parametric.svg|32px]] [[Part_Box|Box]]: Creates a box. This object can also be created with the [[Image:Part_Box.svg|32px]] [[Part_Box|Box]] tool.
**[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Inserts a simple parametric cylinder, with position, angle, radius and height parameters in to the active document. The same tool as [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]].
**[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Creates a cylinder. This object can also be created with the [[Image:Part_Cylinder.svg|32px]] [[Part_Cylinder|Cylinder]] tool.
**[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Inserts a parametric truncated Cone in to the active document. The same tool as [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]].
**[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Creates a cone. This object can also be created with the [[Image:Part_Cone.svg|32px]] [[Part_Cone|Cone]] tool.
**[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Inserts a parametric sphere, with position, angle1, angle2, angle3 and radius parameters. The same tool as [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]].
**[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Creates a sphere. This object can also be created with the [[Image:Part_Sphere.svg|32px]] [[Part_Sphere|Sphere]] tool.
**[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Inserts a parametric Ellipsoid solid in to the active document.
**[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Creates a ellipsoid.
**[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus|Torus]]: Inserts a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 as parameters in to the active document. The same tool as [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]].
**[[Image:Tree_Part_Torus_Parametric.svg|32px]] [[Part_Torus|Torus]]: Creates a torus. This object can also be created with the [[Image:Part_Torus.svg|32px]] [[Part_Torus|Torus]] tool.
**[[Image:Part_Prism.svg|32px]] [[Part_Prism|Prism]]: Inserts a solid defined by a regular polygon cross section and a height in to the active document.
**[[Image:Part_Prism.svg|32px]] [[Part_Prism|Prism]]: Creates a prism.
**[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Inserts a parametric Wedge object in to the active document.
**[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Creates a wedge.
**[[Image:Part_Helix.svg|32px]] [[Part_Helix|Helix]]: Inserts a Helix geometric primitive in to the active document. Common usage for Helix is creating [[Thread_for_Screw_Tutorial|threads]].
**[[Image:Part_Helix.svg|32px]] [[Part_Helix|Helix]]: Creates a helix.
**[[Image:Part_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Inserts a Spiral geometric primitive in to the active workbench.
**[[Image:Part_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Creates a spiral.
**[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Inserts a circular curved edge in to the active document.
**[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Creates a circular edge.
**[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Inserts an elliptical curved edge in to the active document.
**[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Creates a elliptical edge.
**[[Image:Part_Point.svg|32px]] [[Part_Point|Point]] (Vertex): Inserts a Point (vertex) geometric primitive in to the active document.
**[[Image:Part_Point.svg|32px]] [[Part_Point|Point]]: Creates a point (vertex).
**[[Image:Part_Line.svg|32px]] [[Part_Line|Line]] (Edge): creates a simple line segment delimited by two vertices.
**[[Image:Part_Line.svg|32px]] [[Part_Line|Line]]: Creates a line (edge).
**[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Inserts a RegularPolygon geometric primitive in to the active document.
**[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Creates a regular polygon.


* [[Image:Part_Builder.svg|32px]] [[Part_Builder|Builder]]: A tool to create more complex shapes from various parametric geometric primitives
* [[Image:Part_Builder.svg|32px]] [[Part_Builder|Builder]]: Creates shapes from various primitives.


===Modifying objects=== <!--T:38-->
=== Modifying objects === <!--T:38-->


<!--T:39-->
<!--T:39-->

Revision as of 11:46, 15 February 2021

Part workbench icon

Introduction

The solid modelling capabilities of FreeCAD are based on the OpenCASCADE Technology (OCCT) kernel, a professional-grade CAD system that features advanced 3D geometry creation and manipulation. The Part Workbench is a layer sitting on top of the OCCT libraries, that gives the user access to OCCT geometric primitives and functions. Essentially all 2D and 3D drawing functions in every workbench ( Draft, Sketcher, PartDesign, etc.), are based on these functions exposed by the Part Workbench. Therefore, the Part Workbench is considered the core component of the modelling capabilities of FreeCAD.

The objects created with the Part Workbench are relatively simple; they are intended to be used with boolean operations (unions and cuts) in order to build more complex shapes. This modeling paradigm is known as the constructive solid geometry (CSG) workflow, and it was the traditional methodology used in early CAD systems. On the other hand, the PartDesign Workbench provides a more modern workflow to constructing shapes: it uses a parametrically defined sketch, that is extruded to form a basic solid body, which is then modified by parametric transformations (feature editing), until the final object is obtained.

Part objects are more complex than mesh objects created with the Mesh Workbench, as they permit more advanced operations like coherent boolean operations, modifications history, and parametric behaviour.

The Part Workbench is the basic layer that exposes the OCCT drawing functions to all workbenches in FreeCAD.

Tools

The tools are located in the Part menu or the Measure menu.

Primitives

These are tools for creating primitive objects.

  • Box: Creates a box.
  • Cone: Creates a cone.
  • Torus: Creates a torus (ring).
  • Primitives: A tool to create one of the following primitives.
    • Plane: Creates a plane.
    • Box: Creates a box. This object can also be created with the Box tool.
    • Cylinder: Creates a cylinder. This object can also be created with the Cylinder tool.
    • Cone: Creates a cone. This object can also be created with the Cone tool.
    • Sphere: Creates a sphere. This object can also be created with the Sphere tool.
    • Ellipsoid: Creates a ellipsoid.
    • Torus: Creates a torus. This object can also be created with the Torus tool.
    • Prism: Creates a prism.
    • Wedge: Creates a wedge.
    • Helix: Creates a helix.
    • Spiral: Creates a spiral.
    • Circle: Creates a circular edge.
    • Ellipse: Creates a elliptical edge.
    • Point: Creates a point (vertex).
    • Line: Creates a line (edge).
    • Regular Polygon: Creates a regular polygon.
  • Builder: Creates shapes from various primitives.

Modifying objects

These are tools for modifying existing objects.

  • Extrude: Extrudes planar faces of an object
  • Revolve: Creates a solid by revolving another object (not solid) around an axis
  • Mirror: Mirrors the selected object on a given mirror plane
  • Fillet: Fillets (rounds) edges of an object
  • Chamfer: Chamfers edges of an object
  • Loft: Lofts from one profile to another
  • Sweep: Sweeps one or more profiles along a path
  • Offset tools:
    • 3D Offset: Constructs a parallel shape at a certain distance from original.
    • 2D Offset: Constructs a parallel wire at certain distance from original, or enlarges/shrinks a planar face.
  • Thickness: Hollows out a solid, leaving openings next to select faces.
  • Boolean: Performs boolean operations on objects
  • Cut: Cuts (subtracts) one object from another
  • Fuse: Fuses (unions) two objects
  • Common: Extracts the common (intersection) part of two objects
  • Join features: smart booleans for walled objects (e.g., pipes).
    • Connect: Connects interiors of objects.
    • Embed: Embeds a walled object into another walled object.
    • Cutout: Creates a cutout in a wall of an object for another walled object.
  • Splitting tools:.
    • Boolean fragments: makes all the pieces that can be obtained by Boolean operations between objects.
    • Slice a part: tool to split shapes by intersection with other shapes
    • Slice: Splits an object into pieces by intersections with another object.
    • XOR: removes space shared by even number of objects (symmetric version of Cut).
  • Section: Creates a section by intersecting an object with a section plane
  • Attachment: attachment is a utility to attach an object to another one.

Measure

File:Part Measure Menu.png Measure: Allows linear and angular measurement between points, edges, and faces.

Other tools

  • Import: This tool allows you to add a file *.IGES, *.STEP, *.BREP to the current document.
  • Export: This tool allows you to export a part object in a *.IGES, *.STEP, *.BREP file.
  • BoxSelection: add to the selection the faces of the shapes that are touches by the rectangular selection.

Context menu items

  • Appearance: determines appearance of the whole part (color transparency etc.).

Preferences

  • Preferences: preferences available for Part Tools (the Part workbench also uses the PartDesign Preferences).
  • Import Export Preferences: preferences available for importing from and exporting to different file formats.
  • Fine-tuning: some extra parameters to fine-tune Part behavior.

Scripting

See Part scripting.

Tutorials