Part Primitives/cs: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
(Updating to match new version of source page) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{Docnav |
|||
|[[Part_Torus|Torus]] |
|||
|[[Part_Builder|Shapebuilder]] |
|||
|[[Part_Module|Part]] |
|||
|IconL=Part_Torus.svg |
|||
|IconC=Workbench_Part.svg |
|||
|IconR=Part_Shapebuilder.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/cs|Name=Part_CreatePrimitives|Name/cs=Díl Vytváření základních geometrických tvarů|MenuLocation=Díl -> Díl Vytváření zákl.geom.tvarů||Workbenches=[[Part_Module/cs|díl]]|SeeAlso=[[Part_Shapebuilder/cs|Díl Skládání tvarů]]}} |
{{GuiCommand/cs|Name=Part_CreatePrimitives|Name/cs=Díl Vytváření základních geometrických tvarů|MenuLocation=Díl -> Díl Vytváření zákl.geom.tvarů||Workbenches=[[Part_Module/cs|díl]]|SeeAlso=[[Part_Shapebuilder/cs|Díl Skládání tvarů]]}} |
||
</div> |
|||
==Description== |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
</div> |
|||
[[File:Part_Primitives_example.png|800px]] |
|||
{{Caption|Primitive shapes that can be created with the [[Part_Workbench|Part Workbench]].}} |
|||
*V současnosti může tento nástroj parametricky vytvářet |
*V současnosti může tento nástroj parametricky vytvářet |
||
**[[Part_Plane|Rovinu]] |
**[[Part_Plane/cs|Rovinu]] |
||
**[[Part_Box|Box]] |
**[[Part_Box/cs|Box]] |
||
**[[Part_Cylinder|Válec]] |
**[[Part_Cylinder/cs|Válec]] |
||
**[[Part_Cone|Kužel]] |
**[[Part_Cone/cs|Kužel]] |
||
**[[Part_Sphere|Kouli]] |
**[[Part_Sphere/cs|Kouli]] |
||
**[[Part_Ellipsoid|Elipsoid]] |
**[[Part_Ellipsoid/cs|Elipsoid]] |
||
**[[Part_Torus|Torus (vypadá jako nafouknutá duše z kola)]] |
**[[Part_Torus/cs|Torus (vypadá jako nafouknutá duše z kola)]] |
||
**[[Part_Prism|Hranol]] {{Version|0.14}}*: |
**[[Part_Prism/cs|Hranol]] {{Version|0.14}}*: |
||
**[[Part_Wedge|Klín]] |
**[[Part_Wedge/cs|Klín]] |
||
**[[Part_Helix|Šroubovice]] |
**[[Part_Helix/cs|Šroubovice]] |
||
**[[Part_Spiral|Spirála]] {{Version|0.14}}*: |
**[[Part_Spiral/cs|Spirála]] {{Version|0.14}}*: |
||
**[[Part_Circle|Kružnice]] |
**[[Part_Circle/cs|Kružnice]] |
||
**[[Part_Ellipse|Elipsa]] |
**[[Part_Ellipse/cs|Elipsa]] |
||
**[[Part_Line|Přímka]] (Hrana) |
**[[Part_Line/cs|Přímka]] (Hrana) |
||
**[[Part_Point|Bod]] (Vrchol) |
**[[Part_Point/cs|Bod]] (Vrchol) |
||
**[[Part_RegularPolygon|Pravidelný mnohoúhelník]] {{Version|0.14}}*: |
**[[Part_RegularPolygon/cs|Pravidelný mnohoúhelník]] {{Version|0.14}}*: |
||
Some of the available (parametric) geometric primitives that are possible: |
|||
[[File:Part_CreatePrimitives_example_FreeCAD_0_13.jpg]] |
|||
:[[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: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. |
|||
:[[Image:Tree_Part_Cylinder_Parametric.svg|32px]] [[Part_Cylinder|Cylinder]]: Inserts a simple parametric cylinder, with position, angle, radius and height parameters in to he active document. |
|||
:[[Image:Tree_Part_Cone_Parametric.svg|32px]] [[Part_Cone|Cone]]: Inserts a parametric truncated Cone in to the active document. |
|||
:[[Image:Tree_Part_Sphere_Parametric.svg|32px]] [[Part_Sphere|Sphere]]: Inserts a parametric sphere, with position, angle1, angle2, angle3 and radius parameters. |
|||
:[[Image:Part_Ellipsoid.svg|32px]] [[Part_Ellipsoid|Ellipsoid]]: Inserts a parametric Ellipsoid solid in to the active document. |
|||
:[[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. |
|||
:[[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. {{Version|0.14}} |
|||
:[[Image:Part_Wedge.svg|32px]] [[Part_Wedge|Wedge]]: Inserts a parametric Wedge object in to the active document. |
|||
:[[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_Spiral.svg|32px]] [[Part_Spiral|Spiral]]: Inserts a Spiral geometric primitive in to the active workbench. {{Version|0.14}} |
|||
:[[Image:Part_Circle.svg|32px]] [[Part_Circle|Circle]]: Inserts a circular curved edge in to the active document. |
|||
:[[Image:Part_Ellipse.svg|32px]] [[Part_Ellipse|Ellipse]]: Inserts an elliptical curved edge in to the active document. |
|||
:[[Image:Part_Point.svg|32px]] [[Part_Point|Point]] (Vertex): Inserts a Point (vertex) geometric primitive in to the active document. |
|||
:[[Image:Part_Line.svg|32px]] [[Part_Line|Line]] (Edge): creates a simple line segment delimited by two vertices. |
|||
:[[Image:Part_RegularPolygon.svg|32px]] [[Part_RegularPolygon|Regular Polygon]]: Inserts a RegularPolygon geometric primitive in to the active document. {{Version|0.14}} |
|||
== Inheritance == |
|||
{{clear}} |
|||
⚫ | |||
All part primitives are objects which derive from the {{incode|Part::Primitive}} class. This class in turn derives from the basic [[Part_Feature|Part Feature]] object ({{incode|Part::Feature}} class). |
|||
[[File:FreeCAD_core_objects.svg|800px]] |
|||
{{Caption|Simplified diagram of the relationships between the core objects in the program. The {{incode|Part::Primitive}} class is derived from the {{incode|Part::Feature}} object. It includes an extension that allows it to be attached to faces and planes.}} |
|||
== Scripting == |
|||
{{Emphasis|See also:}} [[Part_scripting|Part scripting]] |
|||
Test the creation of the primitives with a script. {{Version|0.19}} |
|||
This can be run from the [[Python_console|Python console]]. |
|||
{{Code|code= |
|||
import parttests.part_test_objects as pto |
|||
pto.create_test_file("example_file") |
|||
}} |
|||
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built. |
|||
{{Code|code= |
|||
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py |
|||
}} |
|||
It can be used as input to the program as well. |
|||
{{Code|code= |
|||
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py |
|||
}} |
|||
{{Docnav |
|||
|[[Part_Torus|Torus]] |
|||
|[[Part_Builder|Shapebuilder]] |
|||
|[[Part_Module|Part]] |
|||
|IconL=Part_Torus.svg |
|||
|IconC=Workbench_Part.svg |
|||
|IconR=Part_Shapebuilder.svg |
|||
}} |
|||
{{Part Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Revision as of 20:47, 26 March 2020
Díl Vytváření základních geometrických tvarů |
Umístění Menu |
---|
Díl -> Díl Vytváření zákl.geom.tvarů |
Pracovní stoly |
díl |
Výchozí zástupce |
Nikdo |
Představen ve verzi |
- |
Viz také |
Díl Skládání tvarů |
Description
Nástroj pro vytváření různých parametrických geometrických tvarů,
Primitive shapes that can be created with the Part Workbench.
- V současnosti může tento nástroj parametricky vytvářet
Some of the available (parametric) geometric primitives that are possible:
- Plane: inserts a simple parametric plane 10 x 10 mm, with the parameters of position, length, and width.
- Box/Cube: inserts a parametric, rectangular cuboid, geometric primitive into the active document.
- Cylinder: Inserts a simple parametric cylinder, with position, angle, radius and height parameters in to he active document.
- Cone: Inserts a parametric truncated Cone in to the active document.
- Sphere: Inserts a parametric sphere, with position, angle1, angle2, angle3 and radius parameters.
- Ellipsoid: Inserts a parametric Ellipsoid solid in to the active document.
- Torus: Inserts a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 as parameters in to the active document.
- Prism: Inserts a solid defined by a regular polygon cross section and a height in to the active document. introduced in version 0.14
- Wedge: Inserts a parametric Wedge object in to the active document.
- Helix: Inserts a Helix geometric primitive in to the active document. Common usage for Helix is creating threads.
- Spiral: Inserts a Spiral geometric primitive in to the active workbench. introduced in version 0.14
- Circle: Inserts a circular curved edge in to the active document.
- Ellipse: Inserts an elliptical curved edge in to the active document.
- Point (Vertex): Inserts a Point (vertex) geometric primitive in to the active document.
- Line (Edge): creates a simple line segment delimited by two vertices.
- Regular Polygon: Inserts a RegularPolygon geometric primitive in to the active document. introduced in version 0.14
Inheritance
All part primitives are objects which derive from the Part::Primitive
class. This class in turn derives from the basic Part Feature object (Part::Feature
class).
Simplified diagram of the relationships between the core objects in the program. The Part::Primitive
class is derived from the Part::Feature
object. It includes an extension that allows it to be attached to faces and planes.
Scripting
See also: Part scripting
Test the creation of the primitives with a script. introduced in version 0.19
This can be run from the Python console.
import parttests.part_test_objects as pto
pto.create_test_file("example_file")
This script is located in the installation directory of the program, and can be examined to see how the basic primitives are built.
$INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
It can be used as input to the program as well.
freecad $INSTALL_DIR/Mod/Part/parttests/part_test_objects.py
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub