Part RegularPolygon/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{UnfinishedDocu{{#translation:}}}} <!-- Note: Screenshot + Formatted Parameters + Scripting section. --> |
|||
{{Docnav |
{{Docnav |
||
Line 17: | Line 16: | ||
==Descrizione== |
==Descrizione== |
||
⚫ | |||
Crea una primitiva geometrica Poligono regolare. |
Crea una primitiva geometrica Poligono regolare. |
||
⚫ | |||
[[Image:Part_RegularPolygon_Example.png|400px]] |
|||
==Utilizzo== |
==Utilizzo== |
||
See [[Part_Primitives#Usage|Part Primitives]]. |
|||
⚫ | |||
Il poligono regolare è disponibile dalla finestra di dialogo Crea primitive dell'ambiente Parte. |
|||
# Attivare l'ambiente [[Image:Workbench_Part.svg|24px]] [[Part Workbench/it|Part]] |
|||
# È possibile accedere al comando Poligono regolare in uno di questi modi: |
|||
#* Premere il pulsante [[Image:Part_CreatePrimitives.svg|24px]] [[Part_CreatePrimitives/it|Crea primitive]] nella barra degli strumenti di Parte |
|||
#* Usare {{MenuCommand|Parte → [[Part_CreatePrimitives/it|Crea primitive]] → Poligono regolare}} |
|||
⚫ | |||
== |
== Example == |
||
[[Image:Part_RegularPolygon_Scripting_Example.png|thumb|Part RegularPolygon from the scripting example]] |
|||
* Polygon - il numero di lati del poligono |
|||
* Cirumradius - la circumradius è la distanza dal centro del poligono a un vertice. |
|||
A Part RegularPolygon object created with the [[#Scripting|scripting example]] below is shown here. |
|||
== Properties == |
|||
See also: [[Property_editor|Property editor]]. |
|||
A Part RegularPolygon object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties: |
|||
=== Data === |
|||
{{TitleProperty|Attachment}} |
|||
The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]]. |
|||
{{TitleProperty|Regular Polygon}} |
|||
* {{PropertyData|Polygon|IntegerConstraint}}: The number of sides of the polygon. The default is {{Value|6}}. |
|||
* {{PropertyData|Circumradius|Length}}: The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is {{Value|2mm}}. |
|||
== Scripting == |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
A Part RegularPolygon can be created with the {{Incode|addObject()}} method of the document: |
|||
{{Code|code= |
|||
poly = FreeCAD.ActiveDocument.addObject("Part::RegularPolygon", "myPolygon") |
|||
}} |
|||
* Where {{Incode|"myPolygon"}} is the name for the object. |
|||
* The function returns the newly created object. |
|||
Example: |
|||
{{Code|code= |
|||
import FreeCAD as App |
|||
doc = App.activeDocument() |
|||
poly = doc.addObject("Part::RegularPolygon", "myPolygon") |
|||
poly.Polygon = 5 |
|||
poly.Circumradius = 8 |
|||
poly.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 30, 15)) |
|||
doc.recompute() |
|||
}} |
|||
Line 44: | Line 87: | ||
}} |
}} |
||
{{ |
{{Part_Tools_navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Revision as of 10:31, 3 March 2022
Poligono regolare |
Posizione nel menu |
---|
Parte → Crea primitive → Poligono regolare |
Ambiente |
Parte |
Avvio veloce |
Nessuno |
Introdotto nella versione |
0.14 |
Vedere anche |
Crea primitive |
Descrizione
Crea una primitiva geometrica Poligono regolare.
Utilizzo
See Part Primitives.
Example
A Part RegularPolygon object created with the scripting example below is shown here.
Properties
See also: Property editor.
A Part RegularPolygon object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Data
Attachment
The object has the same attachment properties as a Part Part2DObject.
Regular Polygon
- DatiPolygon (
IntegerConstraint
): The number of sides of the polygon. The default is6
. - DatiCircumradius (
Length
): The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is2mm
.
Scripting
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part RegularPolygon can be created with the addObject()
method of the document:
poly = FreeCAD.ActiveDocument.addObject("Part::RegularPolygon", "myPolygon")
- Where
"myPolygon"
is the name for the object. - The function returns the newly created object.
Example:
import FreeCAD as App
doc = App.activeDocument()
poly = doc.addObject("Part::RegularPolygon", "myPolygon")
poly.Polygon = 5
poly.Circumradius = 8
poly.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 30, 15))
doc.recompute()
Part
- 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
User documentation
- 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, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub