Part Spiral/it: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "Esempio:")
 
(15 intermediate revisions by the same user not shown)
Line 19: Line 19:


<span id="Description"></span>
<span id="Description"></span>
==Descrizione==
== Descrizione ==


A [[Image:Part_Spiral.svg|24px]] '''Part Spiral''' is a parametric shape that can be created with the [[Image:Part_Primitives.svg|24px]] [[Part_Primitives|Part Primitives]] command. In the coordinate system defined by its {{PropertyData|Placement}} property, the spiral lies on the XY plane with its center at the origin and its start point on the X axis. It widens as it turns counterclockwise.
Una [[Image:Part_Spiral.svg|24px]] '''Part Spirale''' è una forma parametrica che può essere creata con il comando [[Image:Part_Primitives.svg|24px]] [[Part_Primitives/it|Part Primitive]] . Nel sistema di coordinate definito dalla sua proprietà {{PropertyData|Placement}}, la spirale giace sul piano XY con il centro nell'origine e il punto iniziale sull'asse X. Si allarga girando in senso antiorario.


[[Image:Part_Spiral_Example.png|400px]]
[[Image:Part_Spiral_Example.png|400px]]


<span id="Usage"></span>
<span id="Usage"></span>
==Utilizzo==
== Utilizzo ==


See [[Part_Primitives#Usage|Part Primitives]].
Vedere [[Part_Primitives/it#Utilizzo|Part Primitive]].


== Example ==
<span id="Example"></span>
== Esempio ==


[[Image:Part_Spiral_Scripting_Example.png|thumb|Part Spiral from the scripting example]]
[[Image:Part_Spiral_Scripting_Example.png|thumb|Part Spirale dall'esempio di scripting]]


Qui viene mostrato un oggetto Part Spirale creato con l'[[#Script|esempio di scripting]] riportato di seguito.
A Part Spiral object created with the [[#Scripting|scripting example]] below is shown here.


== Properties ==
<span id="Properties"></span>
== Proprietà ==


See also: [[Property_editor|Property editor]].
Vedere anche: [[Property_editor/it|Editor delle proprietà]].


A Part Spiral object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties:
Un oggetto Part Spirale deriva da un oggetto [[Part_Feature/it|Funzione Part]] e ne eredita tutte le proprietà. Ha inoltre le seguenti proprietà aggiuntive:


<span id="Data"></span>
=== Data ===
=== Dati ===


{{TitleProperty|Attachment}}
{{TitleProperty|Attachment}}


The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]].
L'oggetto ha le stesse proprietà di collegamento di un [[Part_Part2DObject/it#Dati|Part Part2DObject]].


{{TitleProperty|Spiral}}
{{TitleProperty|Spiral}}


* {{PropertyData|Growth|Length}}: The distance between two consecutive turns of the spiral. The default is {{Value|1mm}}.
* {{PropertyData|Growth|Length}}: la distanza tra due giri consecutivi della spirale. Il valore predefinito è {{Value|1mm}}.
* {{PropertyData|Radius|Length}}: The start radius of the spiral, the distance between its center and its start point. Can be {{Value|0mm}}. The default is {{Value|1mm}}.
* {{PropertyData|Radius|Length}}: il raggio iniziale della spirale, la distanza tra il suo centro e il suo punto iniziale. Può essere {{Value|0mm}}. Il valore predefinito è {{Value|1mm}}.
* {{PropertyData|Rotations|QuantityConstraint}}: The number of rotations, or turns, of the spiral. The default is {{Value|2}}.
* {{PropertyData|Rotations|QuantityConstraint}}: il numero di rotazioni, o giri, della spirale. Il valore predefinito è {{Value|2}}.
* {{PropertyData|Segment Length|QuantityConstraint}}: The number of turns per spiral subdivision. The default is {{Value|1}}, meaning each full turn of the spiral is a separate segment. Use {{Value|0}} to suppress subdivision.
* {{PropertyData|Segment Length|QuantityConstraint}}: il numero di giri per suddivisione a spirale. Il valore predefinito è {{Value|1}}, il che significa che ogni giro completo della spirale è un segmento separato. Utilizzare {{Value|0}} per sopprimere la suddivisione.


== Scripting ==
<span id="Scripting"></span>
== Script ==


See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
Vedere anche: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting/it|Script di Part]] e [[FreeCAD_Scripting_Basics/it|Script di base per FreeCAD]].


A Part Spiral can be created with the {{Incode|addObject()}} method of the document:
È possibile creare una Part Spirale con il metodo {{Incode|addObject()}} del documento:


{{Code|code=
{{Code|code=
Line 65: Line 69:
}}
}}


* Where {{Incode|"mySpiral"}} is the name for the object.
* Dove {{Incode|"mySpiral"}} è il nome dell'oggetto.
* La funzione restituisce l'oggetto appena creato.
* The function returns the newly created object.


Esempio:
Example:


{{Code|code=
{{Code|code=

Latest revision as of 22:19, 2 January 2024

Part Spirale

Posizione nel menu
Parte → Crea primitive → Spirale
Ambiente
Part, OpenSCAD
Avvio veloce
Nessuno
Introdotto nella versione
0.14
Vedere anche
Part Primitive

Descrizione

Una Part Spirale è una forma parametrica che può essere creata con il comando Part Primitive . Nel sistema di coordinate definito dalla sua proprietà DatiPlacement, la spirale giace sul piano XY con il centro nell'origine e il punto iniziale sull'asse X. Si allarga girando in senso antiorario.

Utilizzo

Vedere Part Primitive.

Esempio

Part Spirale dall'esempio di scripting

Qui viene mostrato un oggetto Part Spirale creato con l'esempio di scripting riportato di seguito.

Proprietà

Vedere anche: Editor delle proprietà.

Un oggetto Part Spirale deriva da un oggetto Funzione Part e ne eredita tutte le proprietà. Ha inoltre le seguenti proprietà aggiuntive:

Dati

Attachment

L'oggetto ha le stesse proprietà di collegamento di un Part Part2DObject.

Spiral

  • DatiGrowth (Length): la distanza tra due giri consecutivi della spirale. Il valore predefinito è 1mm.
  • DatiRadius (Length): il raggio iniziale della spirale, la distanza tra il suo centro e il suo punto iniziale. Può essere 0mm. Il valore predefinito è 1mm.
  • DatiRotations (QuantityConstraint): il numero di rotazioni, o giri, della spirale. Il valore predefinito è 2.
  • DatiSegment Length (QuantityConstraint): il numero di giri per suddivisione a spirale. Il valore predefinito è 1, il che significa che ogni giro completo della spirale è un segmento separato. Utilizzare 0 per sopprimere la suddivisione.

Script

Vedere anche: Autogenerated API documentation, Script di Part e Script di base per FreeCAD.

È possibile creare una Part Spirale con il metodo addObject() del documento:

spiral = FreeCAD.ActiveDocument.addObject("Part::Spiral", "mySpiral")
  • Dove "mySpiral" è il nome dell'oggetto.
  • La funzione restituisce l'oggetto appena creato.

Esempio:

import FreeCAD as App

doc = App.activeDocument()

spiral = doc.addObject("Part::Spiral", "mySpiral")
spiral.Growth = 2
spiral.Radius = 3
spiral.Rotations = 4
spiral.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(75, 60, 30))

doc.recompute()