Sketcher BSplinePoleWeight/de: Difference between revisions

From FreeCAD Documentation
(Created page with "Dabei ist ''n'' der Grad der Kurve. Eine Bézierkurve vom Grad ''n'' ist also ein Polygon der Ordnung ''n''. Die Faktoren <math>P_{i}</math> sind dabei die Koordinaten der Kon...")
(Created page with "Der Begriff Gewicht ist in FreeCAD etwas irreführend, da in der entsprechenden Literatur die Faktoren <math>P_{i}</math> oft auch Gewichte genannt werden. FreeCADs Gewichte s...")
Line 43: Line 43:
Dabei ist ''n'' der Grad der Kurve. Eine Bézierkurve vom Grad ''n'' ist also ein Polygon der Ordnung ''n''. Die Faktoren <math>P_{i}</math> sind dabei die Koordinaten der Kontrollpunkte der Bézierkurven. Zur Veranschaulichung siehe [https://pomax.github.io/bezierinfo/#control diese Seite].
Dabei ist ''n'' der Grad der Kurve. Eine Bézierkurve vom Grad ''n'' ist also ein Polygon der Ordnung ''n''. Die Faktoren <math>P_{i}</math> sind dabei die Koordinaten der Kontrollpunkte der Bézierkurven. Zur Veranschaulichung siehe [https://pomax.github.io/bezierinfo/#control diese Seite].


Der Begriff Gewicht ist in FreeCAD etwas irreführend, da in der entsprechenden Literatur die Faktoren <math>P_{i}</math> oft auch Gewichte genannt werden. FreeCADs Gewichte sind etwas anderes. Die Idee dieser Gewichte ist, die Spline-Kurve zu verändern, durch unterschiedlich "gewichtete" Kontrollpunkte. Die Idee ist, dass ein Punkt mit dem Gewicht 2 doppelt so viel Einfluss hat, wie ein Punkt mit dem Gewicht 1. Dies wird erreicht, durch Anwendung dieser abgewandelten Formel zur Berechnung der Spline-Kurve:
The term weight in FreeCAD is a bit misleading because in literature the factors <math>P_{i}</math> are often called weights as well. FreeCAD's weights are something different. The idea of these weights is to modify the spline so that the different control points are "weighted". The idea is that a point with weight 2 should have twice as much influence than a point with weight 1. This is achieved by using this different formula to calculate the spline:


<math>\quad
<math>\quad

Revision as of 18:00, 18 October 2022

Sketcher BSplinePolGewicht

Menüeintrag
Sketch → B-Spline-Werkzeuge → Gewicht der B-Spline-Kontrollpunkte anzeigen / ausblenden
Arbeitsbereich
Sketcher
Standardtastenkürzel
Keiner
Eingeführt in Version
0.19
Siehe auch
AuswahlB-SplineErstellen

Beschreibung

Blendet die Darstellung der Kontrollpunktgewichte für die Kontrollpunkte einer B-Spline-Kurve ein oder aus (siehe unten für eine Erklärung der Gewichte).

B-Spline mit Kontrollpunktgewichten in eckigen Klammern

Anwendung

  1. Eine B-Spline-Kurve auswählen.
  2. Die Schaltfläche Gewicht der B-Spline-Kontrollpunkte anzeigen / ausblenden drücken.

Gewicht, kurz erklärt

B-Splines sind im Grunde eine Kombination aus Bézierkurven (sehr schön erklärt in diesem und diesem Video).

Die Bézierkurve wird mit dieser Formel berechnet:

Dabei ist n der Grad der Kurve. Eine Bézierkurve vom Grad n ist also ein Polygon der Ordnung n. Die Faktoren sind dabei die Koordinaten der Kontrollpunkte der Bézierkurven. Zur Veranschaulichung siehe diese Seite.

Der Begriff Gewicht ist in FreeCAD etwas irreführend, da in der entsprechenden Literatur die Faktoren oft auch Gewichte genannt werden. FreeCADs Gewichte sind etwas anderes. Die Idee dieser Gewichte ist, die Spline-Kurve zu verändern, durch unterschiedlich "gewichtete" Kontrollpunkte. Die Idee ist, dass ein Punkt mit dem Gewicht 2 doppelt so viel Einfluss hat, wie ein Punkt mit dem Gewicht 1. Dies wird erreicht, durch Anwendung dieser abgewandelten Formel zur Berechnung der Spline-Kurve:

whereby is the weight for the point .

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

Changing Weights

How to change weights is described in this Wiki page.