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)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


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


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


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


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
El comando [[Image:Draft_BezCurve.svg|24px]] [[Draft_BezCurve/es|Borrador BezCurva]] crea una [https://es.wikipedia.org/wiki/Curva_de_B%C3%A9zier Curva de Bézier] a partir de varios puntos.
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.
</div>
</div>


Line 32: Line 37:
{{Caption|Curva de Bézier definida por múltiples puntos}}
{{Caption|Curva de Bézier definida por múltiples puntos}}


<span id="Usage"></span>
==Utilización==
==Utilización==


Ver también: [[Draft_Tray/es|Bandeja Borrador]], [[Draft_Snap/es|Borrador Atrapar]] y [[Draft_Constrain/es|Borrador Restricció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:
#Hay varias formas de invocar el comando:
#* Pulsar el {{Button|[[Image:Draft_BezCurve.svg|16px]] [[Draft_BezCurve/es|Borrador BezCurve]]}}.
#* Pulsar el {{Button|[[Image:Draft_BezCurve.svg|16px]] [[Draft_BezCurve/es|Borrador BezCurve]]}}.
#* Seleccione la opción {{MenuCommand|Redacción → Herramientas Bézier → [[Image:Draft_BezCurve.svg|16px]] Curva de Bézier}} en el menú.
#* 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 de Bézier}}. Ver [[#Opciones|Opciones]] para más información.
# Se abre el panel de tareas {{MenuCommand|Curva Bézier}}. Ver [[#Opciones|Opciones]] para más información.
# Escoge el primer punto en la [[Vista 3D|Vista 3D]], o escribe [[Borrador_Coordenadas|coordenadas]] y pulsa el {{Botón|[[Image:Borrador_AddPoint.svg|16px]] Introducir punto}} botó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 [[Draft_Coordinates/es|coordenadas]] y pulsa el {{Button|[[Image:Borrador_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|Close}} para finalizar el comando.
# Pulse {{KEY|Esc}} o el botón {{Button|Cerrar}} para finalizar el comando.
</div>


<span id="Options"></span>
==Opciones==
==Opciones==


<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.
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.
</div>


<div class="mw-translate-fuzzy">
* To manually enter coordinates enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates.
* 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.
* Press {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, coordinates are relative to the last point, if available, else they are relative to the coordinate system origin.
* 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.
* Press {{KEY|G}} or click the {{MenuCommand|Global}} checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}}
* 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}}
* Press {{KEY|L}} or click the {{MenuCommand|Filled}} checkbox to toggle filled mode. If filled mode is on, the created curve will have {{PropertyData|Make Face}} set to {{TRUE}} and will have a filled face, provided it is closed and does not self-intersect. Note that a self-intersecting curve with a face will not display properly, for such a curve {{PropertyData|Make Face}} must be set to {{FALSE}}.
* 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}}.
* Press {{KEY|T}} or click the {{MenuCommand|Continue}} checkbox to toggle continue mode. If continue mode is on, the command will restart after using {{Button|[[Image:Draft_FinishLine.svg|16px]] Finish}} or {{Button|[[Image:Draft_CloseLine.svg|16px]] Close}}, or after creating a closed curve by snapping to the first point of the curve, allowing you to continue creating curves.
* 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.
* Press the {{button|[[Image:Draft_UndoLine.svg|16px]] Undo}} button to undo the last point. The {{KEY|Ctrl}}+{{KEY|Z}} keyboard shortcut currently does not work.
* Press {{KEY|A}} or the {{Button|[[Image:Draft_FinishLine.svg|16px]] Finish}} button to finish the command and leave the curve open.
* 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.
* Press {{KEY|O}} or the {{Button|[[Image:Draft_CloseLine.svg|16px]] Close}} button to finish the command and close the curve. A closed curve can also be created by snapping to the first point of the curve.
* Pulse {{KEY|A}} o el botón {{Button|[[Image:Draft_FinishLine.svg|16px]] Finalizar}} para terminar el comando y dejar la curva abierta.
* Press {{KEY|W}} or the {{Button|[[Image:Draft Wipe.svg|16px]] Wipe}} button to delete the segments already placed, but keep working from the last point.
* 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.
* Press {{KEY|U}} or the {{Button|[[Image:Draft SelectPlane.svg|16px]] [[Draft_SelectPlane|Set WP]]}} button to adjust the current working plane in the orientation defined by the last and the previous point.
* 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.
* Press {{KEY|Esc}} or the {{button|Close}} button to finish the command.
* 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>
==Notas==
==Notas==


Line 65: Line 80:
* 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.
* 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.


<span id="Properties"></span>
==Propiedades==
==Propiedades==


<div class="mw-translate-fuzzy">
Ver también: [[property_editor/es|Editor de propiedades]].
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:
Un objeto Draft BezCurva deriva de un [[Part_Part2DObject/es|Pieza2DObjeto]] y hereda todas sus propiedades. También tiene las siguientes propiedades adicionales:


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


{{TitleProperty|Draft}}
{{TitleProperty|Borrador}}


* {{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.
* {{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.
Line 83: Line 102:
* {{PropertyData|Points|VectorList}}: specifies the control points of the curve in its local coordinate system.
* {{PropertyData|Points|VectorList}}: specifies the control points of the curve in its local coordinate system.


<span id="View"></span>
=== Vistas ===
=== Vistas ===


{{TitleProperty|Draft}}
{{TitleProperty|Borrador}}


* {{PropertyView|Arrow Size|Length}}: specifies the size of the symbol displayed at the end of the curve.
* {{PropertyView|Arrow Size|Length}}: specifies the size of the symbol displayed at the end of the curve.
Line 93: Line 113:
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].


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


See also: [https://www.freecadweb.org/api Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
Ver también: [https://freecad.github.io/SourceDoc/ Documentación de la API autogenerada] y [[FreeCAD_Scripting_Basics/es|Fundamentos de FreeCAD Guión]].


To create a Draft Line use the {{incode|make_bezcurve}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeBezCurve}} method.
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}}.


{{Code|code=
{{Code|code=
Line 104: Line 125:
}}
}}


* 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 {{incode|placement}} is {{incode|None}} the curve 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 curve is closed, the curve 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:
Ejemplo:
Line 132: Line 153:




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


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

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()