Skip to content

MengjiaoH/B-Spline-Curve-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B-Spline-Curve-GUI

B-Spline Curve GUI.

Run GUI.m, Zoom, rotate, and move figure handles are on the left top of GUI.

  1. Load 2D data
  1. Press “Load 2D Data’ button, and choose a file to load. User could load multiple curve.
  2. When user load a new curve, basis function of the new curve could display in basis function axes.
  3. When user load a new curve, the degree of the new curve and the number of control points would show below curve axes.
  1. Move control points

User could any control points on the curve axes. Just drag points.

  1. Select a curve
  1. User could click on the curve that are decided to interact with.
  2. When user click on a curve. The curves’ line width would be thicker and others would be thinner.
  3. When user click on a curve. The basis function would change based on the selected curve.
  1. Display curve, control points and control polygon
  1. Select one curve on the b-spline axes.
  2. Check/uncheck curve/control points/control polygon.
  1. Change degree
  1. Select one curve on the b-spline axes.
  2. Change degree by selecting a number on the pop-up menu.
  3. When users load or select a curve, the number on the pop-up menu would change to all possible degree.
  1. Move knot vector
  1. Select a curve
  2. Move knot vector on the basis function axes.
  1. Change knot vector
  1. Select a curve on the b-spline axes.
  2. Click on the button of “Modified open uniform knot vector”/ “Floating uniform knot vector”.
  1. Create a new curve
  1. Enter the curves’ degree first.
  2. Click on “Create” button, the program would come in ginput process.
  3. Click control points on the b-spline axes and press Enter after user finishes adding control points.
  1. Insert control point Insert control point at the beginning and the end
  1. Select a curve
  2. Click button “Insert a control point at the beginning”/ “Insert a control point at the end”.
  3. Add a point on the b-spine axes.

Insert control point in the middle

  1. Select a curve
  2. Click button “Insert a control point in the middle”.
  3. Select two control points by clicking first.
  4. Add a new point on the b-spine axes.
  1. Clear Click “Clear” button, the program would re-run and clear all previous data.

About

B-Spline Curve GUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages