BSpline MATLAB GUI Program
Run GUI.m, Zoom, rotate, and move figure handles are on the left top of GUI.
- Press “Load 2D Data’ button, and choose a file to load. User could load multiple curve.
- Press "Load 3D 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.
User could move any control point on the curve axes. Just drag the point.
- 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.
- Select one curve on the b-spline axes.
- Check/uncheck curve/control points/control polygon.
- 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.
- Select a curve
- Move knot vector on the basis function axes.
- Select a curve on the b-spline axes.
- Click on the button of “Modified open uniform knot vector”/ “Floating uniform knot vector”.
- Enter the curves’ degree first, default value is 2, degree = order - 1.
- 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 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.
- Select a curve.
- Click button "Delete a control point".
- Click near the point that is to be deleted.
Click “Clear” button, the program would re-run and clear all previous data.
Click "Exit" button, the program would exit.