Graphics & Media Lab. >> Курсы >> Спец. курс "Доп. главы машинной графики" 1999

Mesh (msh)

key: msh

type: SC(C)*

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

Description

basic mesh with shared vertices

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.

Examples

msh  % a one quad mesh
"" 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
   end
   vrtxUV    % used for texture mapping
     1.0 0.0
     1.0 1.0
     0.0 1.0
     0.0 0.0
   end
   qdrltrl
     0 1 2 3
   end
end
e> mdl page
Graphics & Media Lab. >> Библиотека | Курсы | Графикон

Hosted by Graphics & Media Lab
http://graphics.cs.msu.su
lab_logo
mailto: Laboratory