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 Wire tool, except that each of its segments is curved instead of being a straight line. Use
Wire to B-spline to convert one to the other.
The BSpline tool specifies the exact points through which the curve will go; on the other hand the Bezier curve tool uses control points to define the direction of the curve. To create exact circular or elliptical curves, use
Arc and
Ellipse.
Usage
Utilización
- Presiona el botón
BSpline, o presiona las teclas B y S
- Designa un primer punto en la vista 3D, o escribe unas coordenadas
- Designa un punto adicional en la vista 3D, o escribe unas coordenadas
- 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
- DataClosed: Especifica si la spline está cerrada o no
- ViewEnd 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
- DataClosed: specifies if the spline is closed or not. If the spline is initially open, this value is
false
; setting it totrue
will draw a curve segment to close the spline. If the spline is initially closed, this value istrue
; setting it tofalse
will remove the last curve segment, and make the spline open. - DataMake 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 DataClosed istrue
.
- Note: do not set DataMake Face to
true
if the spline intersects itself, as it won't create a proper face.
- DataParameterization: affects the shape of the BSpline.
View
- ViewArrow Size: specifies the size of the symbol displayed at the end of the spline.
- ViewArrow Type: specifies the type of symbol displayed at the end of the spline, which can be "Dot", "Circle", "Arrow", or "Tick".
- ViewEnd Arrow: specifies whether to show a symbol at the last point of the spline, so it can be used as an annotation line.
- ViewPattern: specifies a Draft Pattern with which to fill the face of a closed spline. This property only works if DataMake Face is
true
, and if ViewDisplay Mode is "Flat Lines". - ViewPattern 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 = make_bspline(pointslist, closed=False, placement=None, face=None, support=None)
BSpline = make_bspline(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 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)
spline1 = Draft.make_bspline([p1, p2, p3], closed=False)
spline2 = Draft.make_bspline([p1, 2*p3, 1.3*p2], closed=False)
spline3 = Draft.make_bspline([1.3*p3, p1, -1.7*p2], closed=False)
doc.recompute()
Note:
The command Draft.make_bspline
has been created for the newer version 0.19, and is not backward compatible.
The command Draft.makeBSpline
works on both version 0.18 and 0.19.
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Wire, Circle, Arc, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Upgrade, Downgrade, Scale, Edit, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, Path Array, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import-Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting