Bézier patch (bzrPtch)

key: bzrPtch

type: SCiiC

  1. string: object name.
  2. mat'l: object materialindex.
  3. nPointsU, nPointsV: number of control points in U and V directions, respectively.
  4. C : vertex list: must have nPointsU*nPointsV points.

Description

A four-sided tensor-product Bézier patch of arbitrary degree

Conventions


Examples

A cubic patch using default texture coordinates (i.e. the natural parametrization of the patch).
bzrPtch "curved-patch"
   mtrlNm "lambert1" end
   4 4
   vrtxPstn
      -3.0 -3.0 0.0
      -1.0 -3.0 1.0
       1.0 -3.0 1.0
       3.0 -3.0 0.0

      -3.0 -1.0 1.0
      -1.0 -1.0 2.0
       1.0 -1.0 2.0
       3.0 -1.0 1.0

      -3.0  1.0 1.0
      -1.0  1.0 2.0
       1.0  1.0 2.0
       3.0  1.0 1.0

      -3.0  3.0 0.0
      -1.0  3.0 1.0
       1.0  3.0 1.0
       3.0  3.0 0.0
   end
end