- GuiCommand: Name: Sketcher BSplinePoleWeight MenuLocation: Sketch -> Sketcher B-spline tools -> Show/hide B-spline control point weight Workbenches: Sketcher_Workbench Version: 0.19 SeeAlso: Sketcher_CompCreateBSpline
Shows or hides the display of the weights for the control points of a B-spline curve (see below for an explanation of weights).
*B-spline with control point weights displayed in brackets*- Select a B-spline and use the toolbar button [ Show/hide B-spline control point weight.
B-splines are basically a combination of Bézier curves (nicely explained in this and this video).
The Bézier curve is calculated using this formula:
$\quad \textrm{Bezier}(n,t)=\sum_{i=0}^{n}\underbrace{\binom{n}{i}}{\text{polynomial term}}\underbrace{\left(1-t\right)^{n-i}t^{i}}{\text{polynomial term}}; \underbrace{P_{i}}_{\text{point coordinate}}$
n is hereby the degree of the curve. So a Bézier curve of degree n is a polygon with order n. The factors
The term weight in FreeCAD is a bit misleading because in literature the factors
whereby
This is a new class of Bézier curves because despite the points are indeed weighted as desired, the curve is no longer a polynomial but a fractional polynomial. Therefore these curves are called rational Bézier curves and the B-splines is then called rational B-splines.
The consequence is that you gain more flexibility in defining the spline shape. If all weights are equal, the shape of the spline does not change. So the weights relative to each other is important, not the value alone. For example this spline has exactly the same shape as the one in the first image:
*Same B-spline as in first image but with different absolute weight values*A weight of zero would be a singularity in the equation to calculate the rational Bézier curves, therefore FreeCAD assures that it cannot become zero. Nevertheless, small values have the same effect as if the control point would almost not exist:
*Same B-spline with an almost zero weight control point*How to change weights is described in this Wiki page.
{{Sketcher_Tools_navi}}
⏵ documentation index > Sketcher > Sketcher BSplinePoleWeight