Draft BezCurve/fr: 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/> |
||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/fr|Name=Draft BezCurve|Name/fr=Draft BezCurve|Workbenches=[[Draft Module/fr|Draft]], [[Arch Module/fr|Arch]]|MenuLocation=Draft → BezCurve|Shortcut=B Z}} |
{{GuiCommand/fr|Name=Draft BezCurve|Name/fr=Draft BezCurve|Workbenches=[[Draft Module/fr|Draft]], [[Arch Module/fr|Arch]]|MenuLocation=Draft → BezCurve|Shortcut=B Z}} |
||
</div> |
|||
==Description== |
==Description== |
||
<div class="mw-translate-fuzzy"> |
|||
⚫ | L'outil BezCurve crée une [http://fr.wikipedia.org/wiki/Courbe_de_B%C3%A9zier courbe de Bezier] (ou une partie de courbe de Bézier) à partir de plusieurs points dans le [[Draft SelectPlane/fr|plan de travail]] courant. La courbe prend les attributs de ligne et couleur définis dans [[Draft Linestyle/fr|Linestyle]]. |
||
</div> |
|||
The BezCurve tool curve uses {{Emphasis|control points}} to define the direction of the curve; on the other hand the [[Draft BSpline]] tool specifies the exact points through which the curve will go. To create exact circular or elliptical curves, use [[Draft Arc]] and [[Draft Ellipse]]. |
|||
⚫ | L'outil BezCurve crée une [http://fr.wikipedia.org/wiki/Courbe_de_B%C3%A9zier courbe de Bezier] (ou une partie de courbe de Bézier) à partir de plusieurs points dans le [[Draft SelectPlane/fr|plan de travail]] courant. La courbe prend les attributs de ligne et couleur définis dans [[Draft Linestyle/fr|Linestyle]]. |
||
[[Image:Draft_BezCurve_Example.png|400px]] |
|||
⚫ | |||
{{Caption|Bezier curve defined by multiple control points}} |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
==Utilisation== |
==Utilisation== |
||
</div> |
|||
# Press the {{Button|[[Image:Draft_BezCurve.png|16px]] [[Draft BezCurve]]}} button, or press {{KEY|B}} then {{KEY|Z}} keys. |
|||
# Click a first point on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. |
|||
# Click additional points on the 3D view, or type a [[Draft_Coordinates|coordinate]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button. |
|||
# Press {{KEY|Esc}} or the {{Button|Close}} button, or double-click the last point to complete the edition. |
|||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
⚫ | |||
</div> |
|||
The curve can be edited by double clicking on the element in the tree view, or by pressing the {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit]]}} button. Then you can move the points to a new position, or click {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} or {{Button|[[Image:Draft_DelPoint.svg|16px]] [[Draft_DelPoint|remove point]]}} and then click on the curve to add or remove points. You can also change the constraint type of each point. |
|||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
⚫ | Les extrémités des segments dans une portion de courbe de Bézier peuvent être contraints les points de contrôle adjacents disponibles sont symétriques ou tangents aux extrémités des segments. Cela se fait après la création de l'objet à l'aide de la fonction {{KEY|[[Image:Draft Edit.png|16px]] [[Draft Edit/fr|Draft Edit]]}}. |
||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
|||
The segment endpoints can be constrained such that adjacent control points are tangent or symmetric to the segments at the endpoint. |
|||
First, start editing the curve, then pick one of the tools and then pick a point. Click again on the tool to deactivate it, so you can move the point. |
|||
* {{Button|[[Image:Draft_BezSharpNode.svg|32px]] sharp}} remove constraints on the points so the curve can have sharp corners. |
|||
* {{Button|[[Image:Draft_BezTanNode.svg|32px]] tangent}} force adjacent control points to be tangent. |
|||
* {{Button|[[Image:Draft_BezSymNode.svg|32px]] symmetric}} force adjacent control points to be tangent and equidistant. |
|||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
# Cliquez le bouton {{KEY|[[Image:Draft_BezCurve.png|16px]] [[Draft BezCurve/fr|Draft BezCurve]]}}, ou pressez les touches {{KEY|B}} et {{KEY|Z}}. |
# Cliquez le bouton {{KEY|[[Image:Draft_BezCurve.png|16px]] [[Draft BezCurve/fr|Draft BezCurve]]}}, ou pressez les touches {{KEY|B}} et {{KEY|Z}}. |
||
# Cliquez le premier point dans la vue 3D, ou tapez les [[Draft_Coordinates/fr|coordonnées]] |
# Cliquez le premier point dans la vue 3D, ou tapez les [[Draft_Coordinates/fr|coordonnées]] |
||
Line 18: | Line 60: | ||
==Options== |
==Options== |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
* Pressez la touche {{KEY|F}} ou le bouton {{KEY|[[Image:Draft FinishLine.png|12px]] '''[[Draft_FinishLine|Finish]]'''}} pour finir la spline, et la laissé ouverte |
* Pressez la touche {{KEY|F}} ou le bouton {{KEY|[[Image:Draft FinishLine.png|12px]] '''[[Draft_FinishLine|Finish]]'''}} pour finir la spline, et la laissé ouverte |
||
* Pressez la touche {{KEY|C}} ou le bouton {{KEY|[[Image:Draft CloseLine.png|12px]] '''[[Draft_CloseLine|Close]]'''}} ou cliquez sur le premier point pour finir et fermer le spline, Mais il sera ajouté un dernier segment entre le premier et dernier point. |
* Pressez la touche {{KEY|C}} ou le bouton {{KEY|[[Image:Draft CloseLine.png|12px]] '''[[Draft_CloseLine|Close]]'''}} ou cliquez sur le premier point pour finir et fermer le spline, Mais il sera ajouté un dernier segment entre le premier et dernier point. |
||
Line 30: | Line 74: | ||
* Pressez les touches {{KEY|CTRL}}+{{KEY|Z}} ou pressez le bouton {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} pour revenir au point précédent. |
* Pressez les touches {{KEY|CTRL}}+{{KEY|Z}} ou pressez le bouton {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} pour revenir au point précédent. |
||
* Pressez la touche {{KEY|ESC}} ou {{KEY|'''Cancel'''}} pour quitter la commande BezCurve. |
* Pressez la touche {{KEY|ESC}} ou {{KEY|'''Cancel'''}} pour quitter la commande BezCurve. |
||
</div> |
|||
==Propriétés== |
==Propriétés== |
||
=== Data === |
|||
* {{PropertyData|Closed}}: Spécifié si la courbe de Bézier est fermée ou non |
|||
* {{PropertyData|Degree}}: |
* {{PropertyData|Degree}}: specifies the degree of the Bezier curve or the individual segments. |
||
* {{PropertyData|Closed}}: specifies if the curve is closed or not. If the curve is initially open, this value is {{FALSE}}; setting it to {{TRUE}} will draw a segment to close the curve. If the curve is initially closed, this value is {{TRUE}}; setting it to {{FALSE}} will remove the last segment, and make the curve open. |
|||
* {{PropertyData|Make Face}}: specifies if the curve makes a face or not. If it is {{TRUE}} a face is created, otherwise only the perimeter is considered part of the object. This property only works if {{PropertyData|Closed}} is {{TRUE}}. |
|||
:{{Emphasis|Note:}} do not set {{PropertyData|Make Face}} to {{TRUE}} if the curve intersects itself, as it won't create a proper face. |
|||
* {{PropertyData|Continuity}}: (read-only) when the curve is closed, indicates the continuity of the curve {{incode|[0]}}, or {{incode|[0,0]}}. Otherwise it's {{incode|[]}}. |
|||
== |
=== View === |
||
* {{PropertyView|Arrow Size}}: specifies the size of the symbol displayed at the end of the curve. |
|||
* {{PropertyView|Arrow Type}}: specifies the type of symbol displayed at the end of the curve, which can be dot, circle, arrow, and tick. |
|||
* {{PropertyView|End Arrow}}: specifies whether to show a symbol at the last point of the curve, so it can be used as an annotation line. |
|||
* {{PropertyView|Pattern}}: specifies a [[Draft Pattern]] with which to fill the face of the closed curve. This property only works if {{PropertyData|Make Face}} is {{TRUE}}, and if {{PropertyView|Display Mode}} is "Flat Lines". |
|||
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern]]. |
|||
<div class="mw-translate-fuzzy"> |
|||
==Script== |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
L'outil BezCurve peut être utilisé dans les [[macros/fr|macros]] et dans la console python en utilisant la console avec la fonction suivante: |
L'outil BezCurve peut être utilisé dans les [[macros/fr|macros]] et dans la console python en utilisant la console avec la fonction suivante: |
||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
makeBezCurve(pointslist, |
BezCurve = makeBezCurve(pointslist, closed=False, placement=None, face=None, support=None, Degree=None) |
||
BezCurve = makeBezCurve(Part.Wire, closed=False, placement=None, face=None, support=None, Degree=None) |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
* Crée une courbe de Bézier suivant la liste de vecteurs. Au lieu d'une liste de points, vous pouvez également passer un Part Wire. |
* Crée une courbe de Bézier suivant la liste de vecteurs. Au lieu d'une liste de points, vous pouvez également passer un Part Wire. |
||
</div> |
|||
Example: |
Example: |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD,Draft |
import FreeCAD, Draft |
||
myFeature = Draft.makeBezCurve(Draft.makeBezCurve(points,False) |
|||
⚫ | |||
⚫ | |||
p1 = FreeCAD.Vector(0, 0, 0) |
|||
⚫ | Les extrémités des segments dans une portion de courbe de Bézier peuvent être contraints les points de contrôle adjacents disponibles sont symétriques ou tangents aux extrémités des segments. Cela se fait après la création de l'objet à l'aide de la fonction {{KEY|[[Image:Draft Edit.png|16px]] [[Draft Edit/fr|Draft Edit]]}}. |
||
p2 = FreeCAD.Vector(1000, 1000, 0) |
|||
⚫ | |||
p3 = FreeCAD.Vector(2000, 0, 0) |
|||
⚫ | |||
p4 = FreeCAD.Vector(1500, -2000, 0) |
|||
⚫ | |||
BezCurve1 = Draft.makeBezCurve([p1, p2, p3, p4], closed=True) |
|||
⚫ | |||
BezCurve2 = Draft.makeBezCurve([p4, 1.3*p2, p1, 4.1*p3], closed=True) |
|||
⚫ | |||
BezCurve3 = Draft.makeBezCurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
{{Draft Tools navi}} |
|||
{{Userdocnavi}} |
|||
{{clear}} |
{{clear}} |
Revision as of 12:59, 8 January 2019
Draft BezCurve |
Emplacement du menu |
---|
Draft → BezCurve |
Ateliers |
Draft, Arch |
Raccourci par défaut |
B Z |
Introduit dans la version |
- |
Voir aussi |
Aucun |
Description
L'outil BezCurve crée une courbe de Bezier (ou une partie de courbe de Bézier) à partir de plusieurs points dans le plan de travail courant. La courbe prend les attributs de ligne et couleur définis dans Linestyle.
The BezCurve tool curve uses control points to define the direction of the curve; on the other hand the Draft BSpline tool specifies the exact points through which the curve will go. To create exact circular or elliptical curves, use Draft Arc and Draft Ellipse.
Bezier curve defined by multiple control points
Utilisation
- Press the Draft BezCurve button, or press B then Z keys.
- Click a first point on the 3D view, or type a coordinate and press the add point button.
- Click additional points on the 3D view, or type a coordinate and press the add point button.
- Press Esc or the Close button, or double-click the last point to complete the edition.
L'objet est créé en une simple courbe de Bézier (nombre de points - 1). Il peut être modifié partiellement après sa création en utilisant l'éditeur de propriétés. Les courbes de Bézier peuvent être modifiées à l'aide Draft Edit.
The curve can be edited by double clicking on the element in the tree view, or by pressing the Draft Edit button. Then you can move the points to a new position, or click add point or remove point and then click on the curve to add or remove points. You can also change the constraint type of each point.
Contraidre les noeuds
Les extrémités des segments dans une portion de courbe de Bézier peuvent être contraints les points de contrôle adjacents disponibles sont symétriques ou tangents aux extrémités des segments. Cela se fait après la création de l'objet à l'aide de la fonction Draft Edit.
The segment endpoints can be constrained such that adjacent control points are tangent or symmetric to the segments at the endpoint. First, start editing the curve, then pick one of the tools and then pick a point. Click again on the tool to deactivate it, so you can move the point.
- sharp remove constraints on the points so the curve can have sharp corners.
- tangent force adjacent control points to be tangent.
- symmetric force adjacent control points to be tangent and equidistant.
Limitations
- Cet outil n'est pas disponible dans les versions antérieures à FreeCAD 0.14.
- La propriété Points n'apparaît pas dans la liste des propriétés.
- OpenCascade ne supporte pas les courbes de Bézier en dessous de > 25 degrés. Ce choix n'est pas un problème dans la pratique.
- Cliquez le bouton Draft BezCurve, ou pressez les touches B et Z.
- Cliquez le premier point dans la vue 3D, ou tapez les coordonnées
- Cliquez un point additionnel dans la vue 3D, ou tapez les coordonnées
- Pressez les touches F ou C, ou double-cliquez le dernier point, ou cliquez sur le premier point pour terminer et fermer la courbe.
Options
- Pressez la touche F ou le bouton Finish pour finir la spline, et la laissé ouverte
- Pressez la touche C ou le bouton Close ou cliquez sur le premier point pour finir et fermer le spline, Mais il sera ajouté un dernier segment entre le premier et dernier point.
- Pressez les touches X, Y ou Z après le point pour contraindre le point suivant dans l'axe choisi.
- Pour entrer les coordonnées manuellement,entrez simplement les nombres puis pressez la touche ENTER entre chaque composant X, Y et Z.
- Pressez la touche R ou cliquez la case à cocher/décocher Relatif. Si relatif est coché, les coordonnées du prochain point sont relatifs au point précédent. Sinon, il est absolu par rapport au point d'origine (0,0,0).
- Pressez la touche T ou cliquez la case à cocher/décocher Continue. Si continue est coché, une nouvelle courbe de Bézier redémarre après l'avoir finie ou fermée, sans avoir à réactiver la commande une autre fois.
- Pressez la touche CTRL en dessinant accroche votre point à l'emplacement d'accrochage le plus proche, indépendamment de la distance.
- Pressez la touche SHIFT en dessinant contrains votre point horizontalement ou verticalement en relation avec dernier point.
- Pressez la touche W ou cliquez le bouton Wipe pour effacer le segment existant et continuer la spline à partir du dernier point.
- Pressez les touches CTRL+Z ou pressez le bouton Undo pour revenir au point précédent.
- Pressez la touche ESC ou Cancel pour quitter la commande BezCurve.
Propriétés
Data
- DonnéesDegree: specifies the degree of the Bezier curve or the individual segments.
- DonnéesClosed: specifies if the curve is closed or not. If the curve is initially open, this value is
false
; setting it totrue
will draw a segment to close the curve. If the curve is initially closed, this value istrue
; setting it tofalse
will remove the last segment, and make the curve open. - DonnéesMake Face: specifies if the curve makes a face or not. If it is
true
a face is created, otherwise only the perimeter is considered part of the object. This property only works if DonnéesClosed istrue
.
- Note: do not set DonnéesMake Face to
true
if the curve intersects itself, as it won't create a proper face.
- DonnéesContinuity: (read-only) when the curve is closed, indicates the continuity of the curve
[0]
, or[0,0]
. Otherwise it's[]
.
View
- VueArrow Size: specifies the size of the symbol displayed at the end of the curve.
- VueArrow Type: specifies the type of symbol displayed at the end of the curve, which can be dot, circle, arrow, and tick.
- VueEnd Arrow: specifies whether to show a symbol at the last point of the curve, so it can be used as an annotation line.
- VuePattern: specifies a Draft Pattern with which to fill the face of the closed curve. This property only works if DonnéesMake Face is
true
, and if VueDisplay Mode is "Flat Lines". - VuePattern Size: specifies the size of the Draft Pattern.
Script
L'outil BezCurve peut être utilisé dans les macros et dans la console python en utilisant la console avec la fonction suivante:
BezCurve = makeBezCurve(pointslist, closed=False, placement=None, face=None, support=None, Degree=None)
BezCurve = makeBezCurve(Part.Wire, closed=False, placement=None, face=None, support=None, Degree=None)
- Crée une courbe de Bézier suivant la liste de vecteurs. Au lieu d'une liste de points, vous pouvez également passer un Part Wire.
Example:
import FreeCAD, Draft
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)
p4 = FreeCAD.Vector(1500, -2000, 0)
BezCurve1 = Draft.makeBezCurve([p1, p2, p3, p4], closed=True)
BezCurve2 = Draft.makeBezCurve([p4, 1.3*p2, p1, 4.1*p3], closed=True)
BezCurve3 = Draft.makeBezCurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True)
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- 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