B-Spline Curve GUI.
Run GUI.m, Zoom, rotate, and move figure handles are on the left top of GUI.
- Load 2D data
- Press “Load 2D Data’ button, and choose a file to load. User could load multiple curve.
- When user load a new curve, basis function of the new curve could display in basis function axes.
- When user load a new curve, the degree of the new curve and the number of control points would show below curve axes.
- Move control points
User could any control points on the curve axes. Just drag points.
- Select a curve
- User could click on the curve that are decided to interact with.
- When user click on a curve. The curves’ line width would be thicker and others would be thinner.
- When user click on a curve. The basis function would change based on the selected curve.
- Display curve, control points and control polygon
- Select one curve on the b-spline axes.
- Check/uncheck curve/control points/control polygon.
- Change degree
- Select one curve on the b-spline axes.
- Change degree by selecting a number on the pop-up menu.
- When users load or select a curve, the number on the pop-up menu would change to all possible degree.
- Move knot vector
- Select a curve
- Move knot vector on the basis function axes.
- Change knot vector
- Select a curve on the b-spline axes.
- Click on the button of “Modified open uniform knot vector”/ “Floating uniform knot vector”.
- Create a new curve
- Enter the curves’ degree first.
- Click on “Create” button, the program would come in ginput process.
- Click control points on the b-spline axes and press Enter after user finishes adding control points.
- Insert control point Insert control point at the beginning and the end
- Select a curve
- Click button “Insert a control point at the beginning”/ “Insert a control point at the end”.
- Add a point on the b-spine axes.
Insert control point in the middle
- Select a curve
- Click button “Insert a control point in the middle”.
- Select two control points by clicking first.
- Add a new point on the b-spine axes.
- Clear Click “Clear” button, the program would re-run and clear all previous data.