Sketcher CreateBSpline
Appearance
This is the approved revision of this page, as well as being the most recent.
|
|
| Menu location |
|---|
| Sketch → Geometries → B-Spline |
| Workbenches |
| Sketcher |
| Default shortcut |
| G B B |
| Introduced in version |
| 0.17 |
| See also |
| Sketcher CreatePeriodicBSpline |
Description[edit | edit source]
The Sketcher CreateBSpline tool creates a B-spline curve from control points. introduced in 1.0: Or optionally from knot points.
B-spline curve (white) defined by 5 control points.
The control polygon (green) connects the control points (marked with dark yellow weight circles).
The number 3 (green, without brackets) in the center refers to the degree of the B-spline.
The numbers (1) and (4) (green, in round brackets) refer to the multiplicity of the knot points.
The numbers [1.00] (green, in square brackets) refer to the weights of the control points.
Usage[edit | edit source]
See also: Drawing aids.
- There are several ways to invoke the tool:
- Press the
B-Spline button.
- Select the Sketch → Geometries →
B-Spline option from the menu.
- Right-click in the 3D View and select the
B-Spline option from the context menu. introduced in 1.0
- Use the keyboard shortcut: G then B, then B.
- Press the
- The cursor changes to a cross with the tool icon.
- The B-Spline Parameters section (introduced in 1.0) is added at the top of the Sketcher Dialog.
- Optionally press the M key or select from the dropdown list in the parameters section to change the tool mode:
From control points:
- Optionally change the Degree (also possible after points have been picked):
- Enter a number greater than zero.
- Press the U key to increase the degree.
- Press the J key to decrease the degree.
- Optionally change the Degree (also possible after points have been picked):
From knots: introduced in 1.0
- B-splines from knots are always created with degree 3. But their degree can be changed later. See Notes.
- Optionally press the R key or check the Periodic checkbox to create a closed B-spline (also possible after points have been picked). introduced in 1.0
- Pick several points.
- Optionally press the F key before finishing to delete the last point. introduced in 1.0
- Right-click or press Esc to finish the input.
- The B-spline is created, including a set of internal geometry (weight circles and knot points).
- If the tool runs in continue mode:
- Optionally keep creating B-splines.
- To finish, right-click or press Esc, or start another geometry or constraint creation tool.
Notes[edit | edit source]
- Elements of the internal geometry can be deleted. They can be recreated at any time with Sketcher RestoreInternalAlignmentGeometry.
- After a B-spline is created, it is possible to define the weight of the control points by changing the radii of the weight circles. The equality constraints on the circles need to be deleted first. The radius constraint is arbitrary, the weight of the control points will be defined by the relative radii of the circles. It works similar to gravity: the bigger a circle is in relation to the others, the more the curve will be attracted to that control point.
- The degree of a created B-spline can be increased or decreased, and the multiplicity of its knots can be increased or decreased as well.
- The visibility of the degree, the control polygon, the curvature comb, the knot multiplicity and the control point weight can be toggled on/off from the Visual Helpers toolbar.
Limitations[edit | edit source]
- Several constraints are not supported at this time.
- The defined knot multiplicity may not always be respected:
- For a periodic spline, the first knot (coincident with last) always has a multiplicity of 2.
- For a non-periodic spline, the first and last knots always have a multiplicity of 4.
- If the points just before and just after have multiplicities >=3, the piece between these two is fully continuous, and this (middle) point will only be constrained with point-on-object. If a knot is needed, consider using the insert knot tool.
- General: New Sketch, Edit Sketch, Attach Sketch, Reorient Sketch, Validate Sketch, Merge Sketches, Mirror Sketch, Leave Sketch, Align View to Sketch, Toggle Section View, Stop Operation, Grid, Snap, Rendering Order
- Geometries: Point, Polyline, Line, Arc From Center, Arc From 3 Points, Elliptical Arc, Hyperbolic Arc, Parabolic Arc, Circle From Center, Circle From 3 Points, Ellipse From Center, Ellipse From 3 Points, Rectangle, Centered Rectangle, Rounded Rectangle, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Polygon, Slot, Arc Slot, B-Spline, Periodic B-Spline, B-Spline From Knots, Periodic B-Spline From Knots, Toggle Construction Geometry
- Constraints:
- Dimensional Constraints: Dimension, Horizontal Dimension, Vertical Dimension, Distance Dimension, Radius/Diameter Dimension, Radius Dimension, Diameter Dimension, Angle Dimension, Lock Position
- Geometric Constraints: Coincident Constraint (Unified), Coincident Constraint, Point-On-Object Constraint, Horizontal/Vertical Constraint, Horizontal Constraint, Vertical Constraint, Parallel Constraint, Perpendicular Constraint, Tangent/Collinear Constraint, Equal Constraint, Symmetric Constraint, Block Constraint, Refraction Constraint
- Constraint Tools: Toggle Driving/Reference Constraints, Toggle Constraints
- Sketcher Tools: Fillet, Chamfer, Trim Edge, Split Edge, Extend Edge, External Projection, External Intersection, Carbon Copy, Select Origin, Select Horizontal Axis, Select Vertical Axis, Move/Array Transform, Rotate/Polar Transform, Scale, Offset, Mirror, Remove Axes Alignment, Delete All Geometry, Delete All Constraints, Copy Elements, Cut Elements, Paste Elements
- B-Spline Tools: Geometry to B-Spline, Increase B-Spline Degree, Decrease B-Spline Degree, Increase Knot Multiplicity, Decrease Knot Multiplicity, Insert Knot, Join Curves
- Visual Helpers: Select Under-Constrained Elements, Select Associated Constraints, Select Associated Geometry, Select Redundant Constraints, Select Conflicting Constraints, Toggle Circular Helper for Arcs, Toggle B-Spline Degree, Toggle B-Spline Control Polygon, Toggle B-Spline Curvature Comb, Toggle B-Spline Knot Multiplicity, Toggle B-Spline Control Point Weight, Toggle Internal Geometry, Switch Virtual Space
- Additional: Sketcher Dialog, Preferences, Sketcher scripting
- 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, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub
