Sketcher ConstrainPerpendicular/it: Difference between revisions

From FreeCAD Documentation
(Created page with '=Vincolo - Perpendicolare= {{GuiCommand/it|Name=Constraint Perpendicular|Name/it=Perpendicolare|Workbenches=Schizzo, Parte|…')
 
(Updating to match new version of source page)
 
(59 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
=Vincolo - Perpendicolare=


<div class="mw-translate-fuzzy">
{{GuiCommand/it|Name=Constraint Perpendicular|Name/it=Perpendicolare|Workbenches=[[Sketcher Workbench/it|Schizzo]], [[PartDesign Workbench/it|Parte]]|MenuLocation=Parte → Schizzo → Perpendicolare|Shortcut=N|SeeAlso=[[Constraint InternalAngle/it|Angolo]]}}
{{Docnav/it|[[Sketcher_ConstrainParallel/it|Parallela]]|[[Sketcher ConstrainTangent/it|Tangente]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint Parallel.svg|IconC=Workbench_Sketcher.svg|IconR=Constraint_Tangent.png}}
</div>


<div class="mw-translate-fuzzy">
====Descrizione====
{{GuiCommand/it|Name=Sketcher ConstrainPerpendicular|Name/it=Perpendicolare|Workbenches=[[Sketcher Workbench/it|Schizzo]], [[PartDesign Workbench/it|PartDesign]]|MenuLocation=PartDesign → Schizzo → Perpendicolare|Shortcut={{KEY|N}}|SeeAlso=[[Sketcher_ConstrainAngle/it|Angolo]]}}
</div>


<span id="Description"></span>
Il Vincolo Perpendicolare costringe due linee selezionate o segmenti di linea nel disegno ad essere perpendicolari tra di loro.
==Descrizione==


<div class="mw-translate-fuzzy">
====Funzionamento====
Il vincolo Perpendicolare fa sì che due linee siano perpendicolari tra loro, o che due curve siano perpendicolari al loro incrocio. Le linee sono considerate infinite, e gli archi sono considerati cerchi completi o ellissi complete. Il vincolo è anche in grado di collegare due curve, costringendole perpendicolari nel punto di unione, in modo simile al vincolo [[Sketcher ConstrainTangent/it|Tangente]].
</div>


<span id="Usage"></span>
Il disegno sottostante ha due linee con un angolo casuale.
==Utilizzo==


See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].
[[File:ConstrainPerpendicular1.png|256px]]


===[[Sketcher_Workbench#Continue_modes|Continue mode]]===
Selezionare i due segmenti di linea che si desidera rendere perpendicolari


# Make sure there is no selection.
[[File:ConstrainPerpendicular2.png|256px]]
# There are several ways to invoke the tool:
#* Press the {{Button|[[Image:Sketcher_ConstrainPerpendicular.svg|16px]] [[Sketcher_ConstrainPerpendicular|Constrain perpendicular]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher constraints → [[Image:Sketcher_ConstrainPerpendicular.svg|16px]] Constrain perpendicular}} option from the menu.
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|Constrain → [[Image:Sketcher_ConstrainPerpendicular.svg|16px]] Constrain perpendicular}} option from the context menu.
#* Use the keyboard shortcut: {{KEY|N}}.
# The cursor changes to a cross with the tool icon.
# Do one of the following:
#* Select two edges. One of the edges must be a straight line or an axis. The other can be any edge except a B-spline.
#* Select a point and two edges (in that order).
#* Select an edge, a point and another edge (idem).
# A Perpendicular constraint is added. If a point and two edges have been selected, up to two [[Sketcher_ConstrainPointOnObject|Point on object constraints]] can also be added. See [[#Between_two_edges_at_point|Examples]].
# Optionally keep creating constraints.
# To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.


===Run-once mode===
quindi fare clic sull'icona Vincolo Perpendicolare [[File:Constraint_Perpendicular.png|16px]] nella barra degli strumenti di vincolo o selezionare il Vincolo Perpendicolare dal sottomenu dell'ambiente Schizzo (o quello dell'ambiente Parte).


# Do one of the following:
[[File:ConstrainPerpendicular3.png|256px]]
#* Select two edges (see above).
#* Select two endpoints belonging to different edges.
#* Select an edge and the endpoint of another edge (in any order).
#* Select a point and two edges (idem).
# Invoke the tool as explained above, or with the following additional option:
#* {{Version|1.0}}: Right-click in the [[3D_view|3D view]] and select the {{MenuCommand|[[Image:Sketcher_ConstrainPerpendicular.svg|16px]] Constrain perpendicular}} option from the context menu.
# A Perpendicular constraint is added. If a point and two edges have been selected, up to two [[Sketcher_ConstrainPointOnObject|Point on object constraints]] can also be added. See [[#Between_two_edges_at_point|Examples]].


==Examples==
Le linee sono forzate perpendicolari.


<span id="Between_two_edges"></span>
{{languages/it | {{en|Constraint_Perpendicular}} {{es|Constraint_Perpendicular/es}} }}
<div class="mw-translate-fuzzy">
===Tra due curve (perpendicolarità diretta)===
[[Image:Sketcher ConsraintPerpendicular mode1.png|600px]]
</div>

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

The two edges are made perpendicular at their (virtual) intersection. If one of the edges is a [[Sketcher_Workbench#Sketcher_CompCreateConic|conic]], a [[Sketcher_CreatePoint|Point object]] that has a [[Sketcher_ConstrainPointOnObject|Point on object constraint]] with both (extended) edges is added.

<span id="Between_two_endpoints"></span>
<div class="mw-translate-fuzzy">
===Tra due punti finali (perpendicolarità punto con punto)===
[[Image:Sketcher ConsraintPerpendicular mode2.png|600px]]
</div>

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

<div class="mw-translate-fuzzy">
In questo modo, i punti finali sono coincidenti, e la congiunzione avviene ad angolo retto. Questa modalità viene applicata quando sono stati selezionati due punti finali di due curve.
</div>

<span id="Between_edge_and_endpoint"></span>
<div class="mw-translate-fuzzy">
===Tra una curva e un punto finale (perpendicolarità punto con curva)===
[[Image:Sketcher ConsraintPerpendicular mode3.png|600px]]
</div>

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

<div class="mw-translate-fuzzy">
In questo modo, il punto finale di una curva è vincolato a giacere sull'altra curva, e le curve sono forzate ad essere perpendicolari nel punto. Questa modalità viene applicata quando sono stati selezionati una curva e un punto finale di un'altra curva.
</div>

<span id="Between_two_edges_at_point"></span>
<div class="mw-translate-fuzzy">
===Tra due curve nel punto (perpendicolarità nel punto) (v0.15)===
[[Image:Sketcher ConsraintPerpendicular mode4.png|600px]]
</div>

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

<div class="mw-translate-fuzzy">
Questo modo rende perpendicolari due curve, e il punto di tangenza è monitorato. Questa modalità viene applicata quando sono state selezionate due curve e un punto.
</div>

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

<div class="mw-translate-fuzzy">
I vincoli di perpendicolarità possono essere creati con le [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] utilizzando la seguente funzione:
</div>
{{Code|code=
# direct perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))

# point-to-point perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))

# point-to-curve perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))

# perpendicular-via-point (plain constraint, helpers are not added automatically)
Sketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos))
}}
<div class="mw-translate-fuzzy">
Dove:
:* <tt>Sketch</tt> è un oggetto sketch
:* <tt>icurve1, icurve2</tt> sono due numeri interi che identificano le curve da rendere perpendicolari. I numeri interi sono gli indici nello schizzo (il valore, reso da Sketch.addGeometry).
:* <tt>pointpos1, pointpos2</tt> dovrebbe essere 1 per il punto iniziale e 2 per il punto finale.
:* <tt>geoidpoint</tt> and <tt>pointpos</tt> in PerpendicularViaPoint sono gli indici che specificano il punto di perpendicolarità.
</div>

The [[Sketcher_scripting|Sketcher scripting]] page explains the values which can be used for {{incode|icurve1}}, {{incode|icurve2}}, {{incode|pointpos1}}, {{incode|pointpos2}} and {{incode|geoidpoint}}, and contains further examples on how to create constraints from Python scripts.


<div class="mw-translate-fuzzy">
{{Docnav/it|[[Sketcher_ConstrainParallel/it|Parallela]]|[[Sketcher ConstrainTangent/it|Tangente]]|[[Sketcher_Workbench/it|Sketcher]]|IconL=Constraint Parallel.svg|IconC=Workbench_Sketcher.svg|IconR=Constraint_Tangent.png}}
</div>

{{Sketcher_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 14:58, 23 April 2024

Perpendicolare

Posizione nel menu
PartDesign → Schizzo → Perpendicolare
Ambiente
Schizzo, PartDesign
Avvio veloce
N
Introdotto nella versione
-
Vedere anche
Angolo

Descrizione

Il vincolo Perpendicolare fa sì che due linee siano perpendicolari tra loro, o che due curve siano perpendicolari al loro incrocio. Le linee sono considerate infinite, e gli archi sono considerati cerchi completi o ellissi complete. Il vincolo è anche in grado di collegare due curve, costringendole perpendicolari nel punto di unione, in modo simile al vincolo Tangente.

Utilizzo

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • Press the Constrain perpendicular button.
    • Select the Sketch → Sketcher constraints → Constrain perpendicular option from the menu.
    • introduced in version 1.0: Right-click in the 3D view and select the Constrain → Constrain perpendicular option from the context menu.
    • Use the keyboard shortcut: N.
  3. The cursor changes to a cross with the tool icon.
  4. Do one of the following:
    • Select two edges. One of the edges must be a straight line or an axis. The other can be any edge except a B-spline.
    • Select a point and two edges (in that order).
    • Select an edge, a point and another edge (idem).
  5. A Perpendicular constraint is added. If a point and two edges have been selected, up to two Point on object constraints can also be added. See Examples.
  6. Optionally keep creating constraints.
  7. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Do one of the following:
    • Select two edges (see above).
    • Select two endpoints belonging to different edges.
    • Select an edge and the endpoint of another edge (in any order).
    • Select a point and two edges (idem).
  2. Invoke the tool as explained above, or with the following additional option:
  3. A Perpendicular constraint is added. If a point and two edges have been selected, up to two Point on object constraints can also be added. See Examples.

Examples

Tra due curve (perpendicolarità diretta)

The two edges are made perpendicular at their (virtual) intersection. If one of the edges is a conic, a Point object that has a Point on object constraint with both (extended) edges is added.

Tra due punti finali (perpendicolarità punto con punto)

In questo modo, i punti finali sono coincidenti, e la congiunzione avviene ad angolo retto. Questa modalità viene applicata quando sono stati selezionati due punti finali di due curve.

Tra una curva e un punto finale (perpendicolarità punto con curva)

In questo modo, il punto finale di una curva è vincolato a giacere sull'altra curva, e le curve sono forzate ad essere perpendicolari nel punto. Questa modalità viene applicata quando sono stati selezionati una curva e un punto finale di un'altra curva.

Tra due curve nel punto (perpendicolarità nel punto) (v0.15)

Questo modo rende perpendicolari due curve, e il punto di tangenza è monitorato. Questa modalità viene applicata quando sono state selezionate due curve e un punto.

Script

I vincoli di perpendicolarità possono essere creati con le macro e dalla console di Python utilizzando la seguente funzione:

# direct perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))

# point-to-point perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))

# point-to-curve perpendicularity
Sketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))

# perpendicular-via-point (plain constraint, helpers are not added automatically)
Sketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos))

Dove:

  • Sketch è un oggetto sketch
  • icurve1, icurve2 sono due numeri interi che identificano le curve da rendere perpendicolari. I numeri interi sono gli indici nello schizzo (il valore, reso da Sketch.addGeometry).
  • pointpos1, pointpos2 dovrebbe essere 1 per il punto iniziale e 2 per il punto finale.
  • geoidpoint and pointpos in PerpendicularViaPoint sono gli indici che specificano il punto di perpendicolarità.

The Sketcher scripting page explains the values which can be used for icurve1, icurve2, pointpos1, pointpos2 and geoidpoint, and contains further examples on how to create constraints from Python scripts.