POV-Ray Insert Menu
mady by Christoph Hormann
http://www.imagico.de/

bicubic_patch

top previous next

// 3D curved FINITE (no CSG) surface created from a mesh of triangles
bicubic_patch {
  type 1 // patch_type (0..1)
  // 0 = Bezier patch, just store the triangular vertices
  // 1 = Bezier patch, store all plane equations defined by
  //       the triangulation of the patch into sub patches
  //       (faster, uses more memory)
   flatness 0.1 // flatness value
  //       flatness_value = 0.0 to 1.0, with higher values
  //        giving flatter, less smooth results
  u_steps 3 // # of triangles to subdivide (1-5)
  v_steps 3 // # of triangles to subdivide (1-5)
  <002> <100> <200> <30-2>
  <010> <110> <210> <31,  0>
  <020> <120> <220> <32,  0>
  <032> <130> <230> <33-2>
}