Sketcher CreateBSplineByInterpolation: Difference between revisions

From FreeCAD Documentation
No edit summary
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Page_in_progress}}
<translate>
<translate>


Line 20: Line 19:
|Shortcut={{KEY|G}} {{KEY|B}} {{KEY|I}}
|Shortcut={{KEY|G}} {{KEY|B}} {{KEY|I}}
|Version=0.21
|Version=0.21
|SeeAlso=[[Sketcher_CreatePeriodicBSpline|Sketcher Periodic B-spline]]
|SeeAlso=[[Sketcher_CreatePeriodicBSplineByInterpolation|Sketcher CreatePeriodicBSplineByInterpolation]]
}}
}}


Line 26: Line 25:


<!--T:4-->
<!--T:4-->
The [[Image:Sketcher_CreateBSplineByInterpolation.svg|24px]] [[Sketcher_CreateBSplineByInterpolation|Sketcher CreateBSplineByInterpolation]] tool creates a B-spline curve through given knot points. See [[B-Splines|this page]] for more information about B-splines.
The [[Image:Sketcher_CreateBSplineByInterpolation.svg|24px]] [[Sketcher_CreateBSplineByInterpolation|Sketcher CreateBSplineByInterpolation]] tool creates a B-spline curve through knot points. See [[B-Splines|this page]] for more information about B-splines.


==Usage== <!--T:5-->
==Usage== <!--T:5-->

<!--T:12-->
See also: [[Sketcher_Workbench#Drawing_aids|Drawing aids]].


<!--T:6-->
<!--T:6-->
Line 35: Line 37:
#* Select the {{MenuCommand|Sketcher → Sketcher geometries → [[Image:Sketcher_CreateBSplineByInterpolation.svg|16px]] Create B-spline by knots}} option from the menu.
#* Select the {{MenuCommand|Sketcher → Sketcher geometries → [[Image:Sketcher_CreateBSplineByInterpolation.svg|16px]] Create B-spline by knots}} option from the menu.
#* Use the keyboard shortcut: {{KEY|G}} then {{KEY|B}}, then {{KEY|I}}.
#* Use the keyboard shortcut: {{KEY|G}} then {{KEY|B}}, then {{KEY|I}}.
# The cursor changes to a white cross with the tool icon.
# The cursor changes to a cross with the tool icon.
# Pick several knot points.
# Pick several knot points.
# Optionally press {{KEY|M}} before terminating the input to define the multiplicity of the last defined knot point (note that this may not always be respected, see [[#Limitations|limitations]] for details).
# Optionally press {{KEY|M}} before finishing the input to define the multiplicity of the last defined knot point (this may not always be respected, see [[#Limitations|limitations]] for details).
# Optionally press {{KEY|Backspace}} before terminating the input to delete the last knot point.
# Optionally press {{KEY|Backspace}} before finishing the input to delete the last knot point.
# Right-click or press {{KEY|Esc}} to terminate the input.
# Right-click or press {{KEY|Esc}} to finish the input.
# The B-spline is created, including a set of internal geometry (weight circles and knot points)...
# The B-spline is created, including a set of internal geometry (weight circles and knot points).
# If the tool runs in [[Sketcher_Workbench#Continue_modes|continue mode]]:
# Optionally deleted one or more elements of this internal geometry. They can be recreated at any time with [[Sketcher_RestoreInternalAlignmentGeometry|Sketcher RestoreInternalAlignmentGeometry]]...
## Optionally keep creating B-splines.
## To finish, right-click or press {{KEY|Esc}}, or start another geometry or constraint creation tool.


==Notes== <!--T:7-->
==Notes== <!--T:7-->

Latest revision as of 09:27, 18 April 2024

Other languages:

Sketcher CreateBSplineByInterpolation

Menu location
Sketch → Sketcher geometries → Create B-spline by knots
Workbenches
Sketcher
Default shortcut
G B I
Introduced in version
0.21
See also
Sketcher CreatePeriodicBSplineByInterpolation

Description

The Sketcher CreateBSplineByInterpolation tool creates a B-spline curve through knot points. See this page for more information about B-splines.

Usage

See also: Drawing aids.

  1. There are several ways to invoke the tool:
    • Press the B-spline by knots button.
    • Select the Sketcher → Sketcher geometries → Create B-spline by knots option from the menu.
    • Use the keyboard shortcut: G then B, then I.
  2. The cursor changes to a cross with the tool icon.
  3. Pick several knot points.
  4. Optionally press M before finishing the input to define the multiplicity of the last defined knot point (this may not always be respected, see limitations for details).
  5. Optionally press Backspace before finishing the input to delete the last knot point.
  6. Right-click or press Esc to finish the input.
  7. The B-spline is created, including a set of internal geometry (weight circles and knot points).
  8. If the tool runs in continue mode:
    1. Optionally keep creating B-splines.
    2. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Notes

See Sketcher CreateBSpline.

Limitations

  • The resultant curve is no different from a (non-uniform) B-spline defined through control points. So all related limitations apply. See Sketcher CreateBSpline.
  • The created B-splines are always cubic (i.e. with degree 3).
  • The defined 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.