Draft BezCurve/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(55 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav
<div class="mw-translate-fuzzy">
|[[Draft_Facebinder|Facebinder]]
{{Docnav/es
|[[Draft CubicBezCurve|CubicBezCurve]]
|[[Draft_CubicBezCurve/es|CubicBezCurva]]
|[[Draft_Module|Draft]]
|[[Draft_Point/es|Punto]]
|IconL=Draft_Facebinder.svg
|[[Draft_Workbench/es|Borrador]]
|IconL=Draft_CubicBezCurve.svg
|IconR=Draft_Point.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_CubicBezCurve.svg
}}
}}
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/es
{{GuiCommand/es|Name=Draft BezCurve|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → BezCurve|Shortcut=B Z}}
|Name=Draft BezCurve
|Name/es=Borrador BezCurva
|MenuLocation=Borrador → Herramientas Bézier → Curva Bézier
|Workbenches=[[Draft_Workbench/es|Borrador]], [[Arch_Workbench/es|Architectura]]
|Version=0.14
|SeeAlso=[[Draft_CubicBezCurve/es|Borrador CubicBezCurva]], [[Draft_BSpline/es|Borrador BSpline]]
}}
</div>
</div>


<span id="Description"></span>
==Descripción==
==Descripción==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
El [[Image:Draft_BezCurve.svg|24px]] '''Borrador BezCurva''' comando crea una [https://es.wikipedia.org/wiki/Curva_de_B%C3%A9zier Curva de Bézier] a partir de varios puntos.
La herramienta BezCurve crea una [http://en.wikipedia.org/wiki/Bezier_curve Bezier Curve] (o una curva Bezier por partes) desde varios puntos en el actual [[Draft SelectPlane|work plane]]. Toma el [[Draft Linestyle|linewidth and color]] previamente establecido en la pestaña Tareas.
</div>
</div>


El comando crea una única curva de Bézier con una {{PropertyData|Degree}} que es {{incode|number_of_points - 1}}. Se puede transformar en una curva Bézier a trozos reduciendo esta propiedad.
The BezCurve tool curve uses {{Emphasis|control points}} to define the direction of the curve; on the other hand the [[Draft BSpline|Draft BSpline]] tool specifies the exact points through which the curve will go. To create exact circular or elliptical curves, use [[Draft Arc|Draft Arc]] and [[Draft Ellipse|Draft Ellipse]].

Los comandos [[Draft_CubicBezCurve/es|Borrador CubicBezCurva]] utilizan {{Emphasis|puntos de control}} para definir la posición y la curvatura de la spline. El comando [[Draft BSpline/es|Borrador BSpline]], en cambio, especifica los {{Emphasis|puntos exactos}} por los que pasará la curva


[[Image:Draft_BezCurve_Example.png|400px]]
[[Image:Draft_BezCurve_Example.png|400px]]
{{Caption|Bezier curve defined by multiple control points}}
{{Caption|Curva de Bézier definida por múltiples puntos}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
[[Image:Draft_BezCurve_Example.png|400px]]
==Utilización==
==Utilización==

Ver también: [[Draft_Tray/es|Bandeja Borrador]], [[Draft_Snap/es|Borrador Atrapar]] y [[Draft_Constrain/es|Borrador Restricción]].

<div class="mw-translate-fuzzy">
#Hay varias formas de invocar el comando:
#* Pulsar el {{Button|[[Image:Draft_BezCurve.svg|16px]] [[Draft_BezCurve/es|Borrador BezCurve]]}}.
#* Seleccione la opción {{MenuCommand|Borrador → Herramientas Bézier → [[Image:Draft_BezCurve.svg|16px]] Curva Bézier}} en el menú.
# Se abre el panel de tareas {{MenuCommand|Curva Bézier}}. Ver [[#Opciones|Opciones]] para más información.
# Escoge el primer punto en la [[3D_view/es|Vista 3D]], o escribe las coordenadas y pulsa el {{Button|[[Image:Draft_AddPoint.svg|16px]] Introducir punto}} botón.
# Escoge puntos adicionales en la [[3D_view/es|Vista 3D]], o escribe las coordenadas y pulsa el {{Button|[[Image:Draft_AddPoint.svg|16px]] Introducir punto}} botón.
# Pulse {{KEY|Esc}} o el botón {{Button|Cerrar}} para finalizar el comando.
</div>
</div>


<span id="Options"></span>
# Invoke the Draft BezCurve command several ways:
==Opciones==
#* Press the {{Button|[[Image:Draft_BezCurve.svg|16px]] [[Draft BezCurve|Draft BezCurve]]}} button in Draft toolbar
#* Press the {{KEY|B}} then {{KEY|Z}} keyboard keys
#* Use the {{MenuCommand|Draft → Bezier tools → BezCurve}} entry in the Draft menu
# 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 class="mw-translate-fuzzy">
Los atajos de teclado de un solo carácter disponibles en el panel de tareas se pueden cambiar. Ver [[Draft_Preferences/rs|Preferencias de Borrador]]. Los atajos mencionados aquí son los atajos por defecto.
El objeto se crea como una única curva Bezier de grado (número_de_puntos - 1). Esto se puede cambiar a una curva Bezier por partes de un grado específico después de la creación usando el [[Property|properties editor]].. Las curvas de Bézier se pueden editar utilizando {{KEY|[[Image:Draft Edit.png|16px]] [[Draft Edit]]}}.
</div>
</div>


<div class="mw-translate-fuzzy">
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|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.
* Para introducir manualmente las coordenadas introduzca el componente X, Y y Z, y pulse {{KEY|Enter}} después de cada una. O puede pulsar el {{Button|[[Image:Draft_AddPoint.svg|16px]] Introducir punto}} cuando tenga los valores deseados. Es aconsejable mover el puntero fuera de la [[3D_view/es|Vista 3D]] antes de introducir las coordenadas.
* Pulse {{KEY|R}} o haga clic en la casilla {{MenuCommand|Relative}} para activar el modo relativo. Si el modo relativo está activado, las coordenadas son relativas al último punto, si está disponible, sino son relativas al origen del sistema de coordenadas.
* Pulse {{KEY|G}} o haga clic en la casilla {{MenuCommand|Global}} para activar el modo global. Si el modo global está activado, las coordenadas son relativas al sistema de coordenadas global, sino son relativas al sistema de coordenadas del [[Draft_SelectPlane/es|Plano de trabajo]]. {{Version/es|0.20}}
* Pulse {{KEY|L}} o haga clic en la casilla {{MenuCommand|Relleno}} para activar el modo relleno. Si el modo de relleno está activado, la curva creada tendrá {{PropertyData|Hacer Cara}} establecido en {{TRUE}} y tendrá una cara rellena, siempre y cuando esté cerrada y no se auto-intersecte. Tenga en cuenta que una curva que se auto-interseca con una cara no se mostrará correctamente, para tal curva {{PropertyData|Hacer Cara}} debe ser ajustado a {{FALSE}}.
* Pulse {{KEY|T}} o haga clic en la casilla {{MenuCommand|Continuar}} para activar el modo de continuación. Si el modo de continuar está activado, el comando se reiniciará después de usar {{Button|[[Image:Draft_FinishLine.svg|16px]] Terminar}} o {{Button|[[Image:Draft_CloseLine.svg|16px]] Cerrar}}, o después de crear una curva cerrada ajustándose al primer punto de la curva, permitiéndole continuar creando curvas.
* Pulse el {{Button|[[Image:Draft_UndoLine.svg|16px]] Deshacer}} para deshacer el último punto. El atajo de teclado {{KEY|Ctrl}}+{{KEY|Z}} actualmente no funciona.
* Pulse {{KEY|A}} o el botón {{Button|[[Image:Draft_FinishLine.svg|16px]] Finalizar}} para terminar el comando y dejar la curva abierta.
* Pulse {{KEY|O}} o el botón {{Button|[[Image:Draft_CloseLine.svg|16px]] Cerrar}} para terminar el comando y cerrar la curva. También se puede crear una curva cerrada ajustándose al primer punto de la curva.
* Pulse {{KEY|W}} o el botón {{Button|[[Image:Draft Wipe.svg|16px]] Limpiar}} para borrar los segmentos ya colocados, pero seguir trabajando desde el último punto.
* Pulsar {{KEY|U}} o el {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane/es|Fijar PT]]}} para ajustar el plano de trabajo actual en la orientación definida por el último punto y el anterior.
* Pulse {{KEY|S}} para activar o desactivar el [[Draft_Snap/es|Borrador Atrapar]].
* Pulse {{KEY|Esc}} o el botón {{Button|Cerrar}} para finalizar el comando.
</div>


<span id="Notes"></span>
=== Node constraints ===
==Notas==


* Un Borrador de Curva de Bézier puede ser editado con el comando [[Draft_Edit/es|Borrador Edición]].
The segment endpoints can be constrained such that adjacent control points are tangent or symmetric to the segments at the endpoint.
* OpenCascade, y por tanto FreeCAD, no soporta curvas Bézier de grados superiores a 25. Esto no debería ser un problema en la práctica, ya que la mayoría de los usuarios suelen utilizar curvas Bézier de grados 3 a 5.
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.


<span id="Properties"></span>
===Limitations===
==Propiedades==
* The Points property does not yet appear in the properties list.
* OpenCascade, and thus FreeCAD, does not support Bezier curves of degrees larger than 25. This should not be a problem in practice, as most users would typically use Bezier curves of degrees 3 to 5.


<div class="mw-translate-fuzzy">
==Options==
Ver también: [[property_editor/es|Editor de propiedades]].
</div>


Un objeto Draft BezCurva deriva de un [[Part_Part2DObject/es|Pieza2DObjeto]] y hereda todas sus propiedades. También tiene las siguientes propiedades adicionales:
* Press {{KEY|A}} or the {{Button|[[Image:Draft_FinishLine.svg|12px]] [[Draft_FinishLine|Finish]]}} button to finish the curve, leaving it open.
* Press {{KEY|O}} or the {{Button|[[Image:Draft_CloseLine.svg|12px]] [[Draft_CloseLine|Close]]}} button to close the curve, that is, a segment will be added from the last point to the first one to form a face. At least four points, a curve of degree three, are required to form a face.
* Press {{KEY|W}} or the {{Button|[[Image:Draft Wipe.svg|12px]] [[Draft_Wipe|Wipe]]}} button to remove the curve segments already placed, but keep editing the curve from the last point.
* Press {{KEY|U}} or the {{Button|[[Image:Draft SelectPlane.svg|12px]] [[Draft_SelectPlane|Set WP]]}} button to adjust the current working plane in the orientation of the last point.
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after a point to constrain the next point on the given axis.
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component.
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the next point are relative to the last one; if not, they are absolute, taken from the origin (0,0,0).
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the BezCurve tool will restart after you finish the curve, allowing you to draw another one without pressing the tool button again.
* Press {{KEY|L}} or click the checkbox to toggle ''filled'' mode. If filled mode is on, a closed wire will create a filled face ({{PropertyData|Make Face}} {{TRUE}}); if not, the closed wire will not make a face ({{PropertyData|Make Face}} {{FALSE}}).
:{{Emphasis|Note:}} the curve should not be filled if it intersects itself, as it won't create a proper face. If the curve is filled but no shape is visible, manually set {{PropertyData|Make Face}} to {{FALSE}} to see the curve.
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the last one.
* Press {{KEY|Ctrl}}+{{KEY|Z}} or press the {{button|[[Image:Draft_UndoLine.svg|12px]] [[Draft_UndoLine|Undo]]}} button to undo the last point.
* Press {{KEY|Esc}} or the {{button|Close}} button to abort the current command; curve segments already placed will remain.


<span id="Data"></span>
==Properties==
=== Datos ===


{{TitleProperty|Borrador}}
=== Data ===
* {{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|[]}}.


* {{PropertyData|Area|Area}}: (read-only) specifies the area of the face of the curve. The value will be {{value|0.0}} if {{PropertyData|Make Face}} if {{FALSE}} or the face cannot be created.
=== View ===
* {{PropertyData|Closed|Bool}}: 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.
* {{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.
* {{PropertyData|Continuity|IntegerList}}: (read-only) specifies the continuity of the curve.
* {{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.
* {{PropertyData|Degree|Integer}}: specifies the degree of the curve.
* {{PropertyData|Length|Length}}: (read-only) specifies the total length of the curve.
* {{PropertyView|Pattern}}: specifies a [[Draft Pattern|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".
* {{PropertyData|Make Face|Bool}}: 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}} and if the curve does not self-intersect.
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern|Draft Pattern]].
* {{PropertyData|Points|VectorList}}: specifies the control points of the curve in its local coordinate system.


<span id="View"></span>
==Scripting==
=== Vistas ===
{{Emphasis|See also:}} [[Draft API|Draft API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].

{{TitleProperty|Borrador}}

* {{PropertyView|Arrow Size|Length}}: specifies the size of the symbol displayed at the end of the curve.
* {{PropertyView|Arrow Type|Enumeration}}: specifies the type of symbol displayed at the end of the curve, which can be {{value|Dot}}, {{value|Circle}}, {{value|Arrow}}, {{value|Tick}} or {{value|Tick-2}}.
* {{PropertyView|End Arrow|Bool}}: specifies whether to show a symbol at the end of the curve, so it can be used as an annotation line.
* {{PropertyView|Pattern|Enumeration}}: specifies the [[Draft_Pattern|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 {{value|Flat Lines}}.
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].

<span id="Scripting"></span>
==Guión==

Ver también: [https://freecad.github.io/SourceDoc/ Documentación de la API autogenerada] y [[FreeCAD_Scripting_Basics/es|Fundamentos de FreeCAD Guión]].

Para crear una Borrador Línea utilice el método {{incode|make_bezcurve}} ({{Version/es|0.19}}) del módulo Borrador. Este método sustituye al método obsoleto {{incode|makeBezCurve}}.


The BezCurve tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function:
{{Code|code=
{{Code|code=
BezCurve = makeBezCurve(pointslist, closed=False, placement=None, face=None, support=None, degree=None)
bezcurve = make_bezcurve(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)
bezcurve = make_bezcurve(Part.Wire, closed=False, placement=None, face=None, support=None, degree=None)
}}
}}


* Creates a {{incode|BezCurve}} object with the given list of points, {{incode|pointslist}}.
* Crea un objeto {{incode|bezcurve}} con la lista de puntos dada, {{incode|pointslist}}.
** Each point in the list is defined by its {{incode|FreeCAD.Vector}}, with units in millimeters.
** Cada punto de la lista está definido por su {{incode|FreeCAD.Vector}}, con unidades en milímetros.
** Alternatively, the input can be a {{incode|Part.Wire}}, from which points are extracted.
** Alternativamente, la entrada puede ser un {{incode|Part.Wire}}, del que se extraen los puntos.
* If {{incode|closed}} is {{incode|True}}, or if the first and last points are identical, the curve is closed.
* Si {{incode|closed}} es {{incode|True}}, o si el primer y el último punto son idénticos, la curva está cerrada.
* If a {{incode|placement}} is given, it is used; otherwise the shape is created at the origin.
* Si {{incode|placement}} es {{incode|None}} la curva se crea en el origen.
* If {{incode|face}} is {{incode|True}}, and the wire is closed, the wire will make a face, that is, it will appear filled.
* Si {{incode|face}} es {{incode|True}}, y la curva es cerrada, la curva formará una cara, es decir, aparecerá rellena.

Ejemplo:


Example:
{{Code|code=
{{Code|code=
import FreeCAD, Draft
import FreeCAD as App
import Draft


doc = App.newDocument()
p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)
p4 = FreeCAD.Vector(1500, -2000, 0)


p1 = App.Vector(0, 0, 0)
BezCurve1 = Draft.makeBezCurve([p1, p2, p3, p4], closed=True)
p2 = App.Vector(1000, 1000, 0)
BezCurve2 = Draft.makeBezCurve([p4, 1.3*p2, p1, 4.1*p3], closed=True)
p3 = App.Vector(2000, 0, 0)
BezCurve3 = Draft.makeBezCurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True)
p4 = App.Vector(1500, -2000, 0)

bezcurve1 = Draft.make_bezcurve([p1, p2, p3, p4], closed=True)
bezcurve2 = Draft.make_bezcurve([p4, 1.3*p2, p1, 4.1*p3], closed=True)
bezcurve3 = Draft.make_bezcurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True)

doc.recompute()
}}
}}



{{Docnav
<div class="mw-translate-fuzzy">
|[[Draft_Facebinder|Facebinder]]
{{Docnav/es
|[[Draft CubicBezCurve|CubicBezCurve]]
|[[Draft_CubicBezCurve/es|CubicBezCurva]]
|[[Draft_Module|Draft]]
|[[Draft_Point/es|Punto]]
|IconL=Draft_Facebinder.svg
|[[Draft_Workbench/es|Borrador]]
|IconL=Draft_CubicBezCurve.svg
|IconR=Draft_Point.svg
|IconC=Workbench_Draft.svg
|IconC=Workbench_Draft.svg
|IconR=Draft_CubicBezCurve.svg
}}
}}
</div>


{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 05:00, 9 January 2024

Borrador BezCurva

Ubicación en el Menú
Borrador → Herramientas Bézier → Curva Bézier
Entornos de trabajo
Borrador, Architectura
Atajo de teclado por defecto
Ninguno
Introducido en versión
0.14
Ver también
Borrador CubicBezCurva, Borrador BSpline

Descripción

El Borrador BezCurva comando crea una Curva de Bézier a partir de varios puntos.

El comando crea una única curva de Bézier con una DatosDegree que es number_of_points - 1. Se puede transformar en una curva Bézier a trozos reduciendo esta propiedad.

Los comandos Borrador CubicBezCurva utilizan puntos de control para definir la posición y la curvatura de la spline. El comando Borrador BSpline, en cambio, especifica los puntos exactos por los que pasará la curva

Curva de Bézier definida por múltiples puntos

Utilización

Ver también: Bandeja Borrador, Borrador Atrapar y Borrador Restricción.

  1. Hay varias formas de invocar el comando:
    • Pulsar el Borrador BezCurve.
    • Seleccione la opción Borrador → Herramientas Bézier → Curva Bézier en el menú.
  2. Se abre el panel de tareas Curva Bézier. Ver Opciones para más información.
  3. Escoge el primer punto en la Vista 3D, o escribe las coordenadas y pulsa el Introducir punto botón.
  4. Escoge puntos adicionales en la Vista 3D, o escribe las coordenadas y pulsa el Introducir punto botón.
  5. Pulse Esc o el botón Cerrar para finalizar el comando.

Opciones

Los atajos de teclado de un solo carácter disponibles en el panel de tareas se pueden cambiar. Ver Preferencias de Borrador. Los atajos mencionados aquí son los atajos por defecto.

  • Para introducir manualmente las coordenadas introduzca el componente X, Y y Z, y pulse Enter después de cada una. O puede pulsar el Introducir punto cuando tenga los valores deseados. Es aconsejable mover el puntero fuera de la Vista 3D antes de introducir las coordenadas.
  • Pulse R o haga clic en la casilla Relative para activar el modo relativo. Si el modo relativo está activado, las coordenadas son relativas al último punto, si está disponible, sino son relativas al origen del sistema de coordenadas.
  • Pulse G o haga clic en la casilla Global para activar el modo global. Si el modo global está activado, las coordenadas son relativas al sistema de coordenadas global, sino son relativas al sistema de coordenadas del Plano de trabajo. introducido en la versión 0.20
  • Pulse L o haga clic en la casilla Relleno para activar el modo relleno. Si el modo de relleno está activado, la curva creada tendrá DatosHacer Cara establecido en true y tendrá una cara rellena, siempre y cuando esté cerrada y no se auto-intersecte. Tenga en cuenta que una curva que se auto-interseca con una cara no se mostrará correctamente, para tal curva DatosHacer Cara debe ser ajustado a false.
  • Pulse T o haga clic en la casilla Continuar para activar el modo de continuación. Si el modo de continuar está activado, el comando se reiniciará después de usar Terminar o Cerrar, o después de crear una curva cerrada ajustándose al primer punto de la curva, permitiéndole continuar creando curvas.
  • Pulse el Deshacer para deshacer el último punto. El atajo de teclado Ctrl+Z actualmente no funciona.
  • Pulse A o el botón Finalizar para terminar el comando y dejar la curva abierta.
  • Pulse O o el botón Cerrar para terminar el comando y cerrar la curva. También se puede crear una curva cerrada ajustándose al primer punto de la curva.
  • Pulse W o el botón Limpiar para borrar los segmentos ya colocados, pero seguir trabajando desde el último punto.
  • Pulsar U o el Fijar PT para ajustar el plano de trabajo actual en la orientación definida por el último punto y el anterior.
  • Pulse S para activar o desactivar el Borrador Atrapar.
  • Pulse Esc o el botón Cerrar para finalizar el comando.

Notas

  • Un Borrador de Curva de Bézier puede ser editado con el comando Borrador Edición.
  • OpenCascade, y por tanto FreeCAD, no soporta curvas Bézier de grados superiores a 25. Esto no debería ser un problema en la práctica, ya que la mayoría de los usuarios suelen utilizar curvas Bézier de grados 3 a 5.

Propiedades

Ver también: Editor de propiedades.

Un objeto Draft BezCurva deriva de un Pieza2DObjeto y hereda todas sus propiedades. También tiene las siguientes propiedades adicionales:

Datos

Borrador

  • DatosArea (Area): (read-only) specifies the area of the face of the curve. The value will be 0.0 if DatosMake Face if false or the face cannot be created.
  • DatosClosed (Bool): 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.
  • DatosContinuity (IntegerList): (read-only) specifies the continuity of the curve.
  • DatosDegree (Integer): specifies the degree of the curve.
  • DatosLength (Length): (read-only) specifies the total length of the curve.
  • DatosMake Face (Bool): 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 DatosClosed is true and if the curve does not self-intersect.
  • DatosPoints (VectorList): specifies the control points of the curve in its local coordinate system.

Vistas

Borrador

  • VistaArrow Size (Length): specifies the size of the symbol displayed at the end of the curve.
  • VistaArrow Type (Enumeration): specifies the type of symbol displayed at the end of the curve, which can be Dot, Circle, Arrow, Tick or Tick-2.
  • VistaEnd Arrow (Bool): specifies whether to show a symbol at the end of the curve, so it can be used as an annotation line.
  • VistaPattern (Enumeration): specifies the Draft Pattern with which to fill the face of the closed curve. This property only works if DatosMake Face is true and if VistaDisplay Mode is Flat Lines.
  • VistaPattern Size (Float): specifies the size of the Draft Pattern.

Guión

Ver también: Documentación de la API autogenerada y Fundamentos de FreeCAD Guión.

Para crear una Borrador Línea utilice el método make_bezcurve (introducido en la versión 0.19) del módulo Borrador. Este método sustituye al método obsoleto makeBezCurve.

bezcurve = make_bezcurve(pointslist, closed=False, placement=None, face=None, support=None, degree=None)
bezcurve = make_bezcurve(Part.Wire, closed=False, placement=None, face=None, support=None, degree=None)
  • Crea un objeto bezcurve con la lista de puntos dada, pointslist.
    • Cada punto de la lista está definido por su FreeCAD.Vector, con unidades en milímetros.
    • Alternativamente, la entrada puede ser un Part.Wire, del que se extraen los puntos.
  • Si closed es True, o si el primer y el último punto son idénticos, la curva está cerrada.
  • Si placement es None la curva se crea en el origen.
  • Si face es True, y la curva es cerrada, la curva formará una cara, es decir, aparecerá rellena.

Ejemplo:

import FreeCAD as App
import Draft

doc = App.newDocument()

p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 1000, 0)
p3 = App.Vector(2000, 0, 0)
p4 = App.Vector(1500, -2000, 0)

bezcurve1 = Draft.make_bezcurve([p1, p2, p3, p4], closed=True)
bezcurve2 = Draft.make_bezcurve([p4, 1.3*p2, p1, 4.1*p3], closed=True)
bezcurve3 = Draft.make_bezcurve([1.7*p3, 1.5*p4, 2.1*p2, p1], closed=True)

doc.recompute()