Bezier patch
This program draws two Bezier patches. Patches lies within the convex hull of its control points. Transition between patches in initial positon of control points is continuous. Control points can be changed in text area. There must be 16 control point for each patch. Each control point is written in this way: [i j x y z], where i and j means the index of point and x, y and z coordinates of that point. Density of patches is defined by size of U and V. Program enables the user to observe the patches under different positions and scales.
Input data:
#Indexed coordinates of control points for patch 0 and 1 : i j x y z Points 0 0 0 0 0 0 0 1 1 0 1 0 2 2 0 1 0 3 3 0 -1 1 0 0 1 1 1 1 1 1 1 1 2 2 1 1 1 3 3 1 -1 2 0 0 2 1 2 1 1 2 1 2 2 2 2 1 2 3 3 2 1.5 3 0 0 3 0 3 1 1 3 1 3 2 2 3 1 3 3 3 3 1.5 Points 1 0 0 -3 0 0 0 1 -2 0 -1 0 2 -1 0 -1 0 3 0 0 0 1 0 -3 1 0 1 1 -2 1 0 1 2 -1 1 1 1 3 0 1 1 2 0 -3 2 0 2 1 -2 2 1 2 2 -1 2 1 2 3 0 2 1 3 0 -3 3 0 3 1 -2 3 1 3 2 -1 3 -1 3 3 0 3 0
U:
, V:
Bezier patch
Control net
Coordinate axes
View rotaton
X
Y
Z
back to index