Complex Polygon (cmplxPly)

key: cmplxPly

type: C(C)*

  1. chunk: outline polygon.
  2. chunk: hole polygon.

Description

A complex polygon which consists of a outline plus optional holes. The chunk gives the outline of the polygon and any additional chunks are holes within the outline.

Conventions

By convention the polygon chunks are used to specify the outline and any holes. The outline should be right handed and the holes should have reverse handedness from the outline. The polygon should not self-intersect or intersect each other. All holes should be contained within the outline polygon and should not be inside any of the other holes.

Examples

msh  % a mesh with a square as a polygon
"" 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.2 -0.3 0.0
     -0.3 -0.2 0.0
     0.0 0.2 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.7 0.2
     0.2 0.3
     0.5 0.7
   end
   cmplxPly
     plygn       % square outline
       0 1 2 3
     end
     plygn       % triangular hole
       4 5 6
     end
   end
end

mdl page