File Exchange

image thumbnail

Bezier Curve/Patch Subdivision

version 1.0.0.0 (40.5 KB) by Zhengyi
Subdivision of a Bezier curve or a Bezier patch.

1 Download

Updated 30 May 2017

View License

The function splits a k-th order Bezier curve or Bezier patch at user defined parameter(s).
Use:
CP = bezsubdiv(C, U) splits a k-th order Bezier curve with control points C at parameter U, and returns new control points CP.
[CP, CL, CR] = BEZSUBDIV(...) also returns k-by-3 matrices CL and CR for control points CL and CR for left and right segments.
CP = BEZSUBDIV(C,U,W) splits a Bezier patch with control points C at parameter U and W, and returns new control points CP.
[CP,CLU,CRU,CLW,CRW] = BEZSUBDIV(...) also returns ku-by-kw-3 matrices CLU, CRU, CLW and CRW for control points for top left, top right, bottom left and bottom right patches.

Cite As

Zhengyi (2019). Bezier Curve/Patch Subdivision (https://www.mathworks.com/matlabcentral/fileexchange/63175-bezier-curve-patch-subdivision), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.0.0

- fixed a mistake in calculating w-direction control points.
- added a demo program.

1.0.0.0

- added an "icon"

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags