Borrador BSpline

From FreeCAD Documentation
Revision as of 17:49, 21 February 2020 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Draft BSpline

Ubicación en el Menú
Croquis → BSpline
Entornos de trabajo
Croquis, Arquitectura
Atajo de teclado por defecto
B S
Introducido en versión
-
Ver también
Contorno

Description

Descripción

La herramienta BSpline crea una curva B-Spline a partir de varios puntos en el plano de trabajo actual. Toma el espesor de línea y color previamente establecidos en la pestaña de tareas. La herramienta BSpline se comporta exactamente como la herramienta Contorno.

The BSpline tool behaves like the Draft Wire tool, except that each of its segments is curved instead of being a straight line. Use Draft WireToBSpline to convert one to the other.

The BSpline tool specifies the exact points through which the curve will go; on the other hand the Draft BezCurve tool uses control points to define the direction of the curve. To create exact circular or elliptical curves, use Draft Arc and Draft Ellipse.

Usage

Utilización

  1. Presiona el botón BSpline, o presiona las teclas B y S
  2. Designa un primer punto en la vista 3D, o escribe unas coordenadas
  3. Designa un punto adicional en la vista 3D, o escribe unas coordenadas
  4. Presiona F o C, o haz doble clic en el último punto, o clic en el primer punto para terminar o cerrar la BSpline. Si la spline está cerrada, será también una cara, incluso aunque se muestre en estructura alámbrica.

The spline 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 wire to add or remove points.

Opciones

  • Presiona F o el botón Terminar para terminar la spline, dejándola abierta
  • Presiona C o el botón Cerrar o designa el primer punto para finalizar la spline, pero haciendo que se cierre añadiendo un último segmento entre el último punto y el primero.
  • Presiona X, Y o Z después de un punto para restringir el punto siguiente sobre el eje dado.
  • Para introducir coordenadas manualmente, simplemente introduce los números y presiona ENTER entre cada componente X, Y y Z.
  • Presiona R o selecciona la casilla para activar/desactivar el botón Relativas. Si el modo relativas está activado, las coordenadas del siguiente punto son relativas al anterior. Si no, son absolutas, desde el origen de coordenadas (0,0,0).
  • Presiona T o selecciona la casilla para activar/desactivar el botón Continuar. Si el modo continuar está activado, la herramienta BSpline se reiniciará después de terminar, permitiendo que dibujes otra sin necesidad de volver a pulsar el botón de BSpline.
  • Presiona CTRL mientras dibujas para forzar el ajuste de tu punto a la ubicación de ajuste más cercana, independientemente de la distancia.
  • Presiona SHIFT mientras dibujas para restringir tu siguiente punto horizontal o verticalmente en relación al último.
  • Presiona W o el botón Limpiar para eliminar segmentos existentes e iniciar la spline desde el último punto.
  • Presiona CTRL+Z o el botón Deshacer para deshacer el último punto.
  • Presiona I o el botón Rellenado para que la spline se muestre como una cara después de cerrarse. Esto simplemente establece las propiedades de visualización del contorno como "líneas planas" o "alámbrica", de modo que se puedan cambiar de forma sencilla después.
  • Presiona ESC o el botón Cancelar para abortar el comando BSpline actual.

Propiedades

  • DatosClosed: Especifica si la spline está cerrada o no
  • VistaEnd Arrow: Muestra un símbolo de flecha en el último punto de la spline, de modo que se puede utilizar como una anotación con línea directriz

A BSpline object shares most properties from a Draft Wire, however, most properties only make sense for a Wire.

Data

  • DatosClosed: specifies if the spline is closed or not. If the spline is initially open, this value is false; setting it to true will draw a curve segment to close the spline. If the spline is initially closed, this value is true; setting it to false will remove the last curve segment, and make the spline open.
  • DatosMake Face: specifies if the spline 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.
Note: do not set DatosMake Face to true if the spline intersects itself, as it won't create a proper face.
  • DatosParameterization: affects the shape of the BSpline.

View

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

Archivos de guión

La herramienta BSpline puede utilizarse en macros y desde la consola de Python utilizando la siguiente función:

The BSpline tool can be used in macros and from the Python console by using the following function:

BSpline = makeBSpline(pointslist, closed=False, placement=None, face=None, support=None)
BSpline = makeBSpline(Part.Wire, closed=False, placement=None, face=None, support=None)
  • Crea un objeto B-Spline a partir de la lista de vectores dada.
  • Si closed es True o si el primer y último punto son idénticos, el contorno es cerrado.
  • Si face es true (y la BSpline está cerrada), la BSpline se mostrará rellena.
  • En lugar de una lista de puntos, también puedes pasar un contorno de pieza.
  • Devuelve el objeto recién creado.

Ejemplo:

import FreeCAD, Draft

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(1000, 1000, 0)
p3 = FreeCAD.Vector(2000, 0, 0)

BSpline1 = Draft.makeBSpline([p1, p2, p3], closed=True)
BSpline2 = Draft.makeBSpline([p1, 2*p3, 1.3*p2], closed=True)
BSpline3 = Draft.makeBSpline([1.3*p3, p1, -1.7*p2], closed=True)