Planar Mesh (plnrMsh)

key: plnrMsh

type: SC(C)*

  1. string: object's name.
  2. mat'l: object's material.
  3. (C)* : vertex and patch lists.

Description

planar mesh with shared vertices and possible triangulation

Conventions

By convention all vertex lists should come before any patch lists. Also the material name should have been previously defined in this file. A material name of "" means no material is specified. The first patch chunk will contain the polygon which defines this planar mesh (this is usually given as a complex polygon chunk). If there are additional patch chunks, they will be a triangulation of this polygon which may contain additional vertices so long as they are contained in the polygon.

Examples

plnrMsh  % a square planar mesh with triangulation
"" mtrlNm "mat" end
   vrtxPstn
     0.5 -0.5 0.0
     0.5  0.5 0.0
     -0.5  0.5 0.0
     -0.5 -0.5 0.0
     0.0  0.0 0.0
   end
   vrtxUV    % used for texture mapping
     1.0 0.0
     1.0 1.0
     0.0 1.0
     0.0 0.0
     0.5 0.5
   end
   cmplxPly
     plygn
       0 1 2 3
     end
   end
   trngl
     0 1 4 1 2 4 2 3 4 3 0 4
   end
end