Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

XG.3D-MAKE-GRL-OF-LINES/TRIANGLES/RECTANGLES

source files: [xc]thl.[ch]

SYNTAX

(XG.3D-MAKE-GRL-OF-RECTANGLES
  [:WANT-FACET-NORMALS   t]
  [:WANT-FACET-COLORS    t]
  [:WANT-POINT-NORMALS   t]
  [:WANT-POINT-COLORS    t]
  [:WANT-FACET-TEXTURES  t]
  [:WANT-POINT-TEXTURES  t]
  [:WANT-FACET-NEIGHBORS t]
   ...
)
(XG.3D-MAKE-GRL-OF-TRIANGLES
   ...
)
(XG.3D-MAKE-GRL-OF-LINES
   ...
)

DESCRIPTION

These convenience functions return instances of class-graphic-relation containing class-int32-array instances named :FACET-0 and :FACET-1; XG.3D-MAKE-GRL-OF-TRIANGLES adds a class-int32-array instance named :FACET-2, and XG.3D-MAKE-GRL-OF-RECTANGLES adds a class-int32-array instance named :FACET-3 -- the three calls are otherwise identical.

If :WANT-FACET-NORMALS is set non-NIL, class-float-array instances named :FACET-NORMAL-X, :FACET-NORMAL-Y and :FACET-NORMAL-Z will be provided in the facet relation.

If :WANT-POINT-NORMALS is set non-NIL, class-float-array instances named :POINT-NORMAL-X, :POINT-NORMAL-Y and :POINT-NORMAL-Z will be provided in the point relation.

If :WANT-FACET-COLORS is set non-NIL, class-8-bit-float-array instances named :FACET-RED, :FACET-GREEN and :FACET-BLUE will be provided in the facet relation.

If :WANT-POINT-COLORS is set non-NIL, class-8-bit-float-array instances named :POINT-RED, :POINT-GREEN and :POINT-BLUE will be provided in the point relation.

If :WANT-POINT-TEXTURES is set non-NIL, class-float-array instances named :POINT-TEXTURE-X and :POINT-TEXTURE-Y will be provided in the point relation.

If :WANT-FACET-TEXTURES is set non-NIL, class-float-array instances pairs named

:FACET-TEXTURE-X-0 :FACET-TEXTURE-Y-0
:FACET-TEXTURE-X-1 :FACET-TEXTURE-Y-1
:FACET-TEXTURE-X-2 :FACET-TEXTURE-Y-2
:FACET-TEXTURE-X-3 :FACET-TEXTURE-Y-3

will be provided in the facet relation, according to the type (rectangles/triangles/...) of the relation: all four for rectangles, only the first three for triangles, &tc.

If :WANT-FACET-NEIGHBORS is set non-NIL, class-int32-array instances named

:FACET-NEIGHBOR-0
:FACET-NEIGHBOR-1
:FACET-NEIGHBOR-2
:FACET-NEIGHBOR-3

will be provided in the facet relation, according to the type (rectangles/triangles/...) of the relation: all four for rectangles, only the first three for triangles, &tc.


Go to the first, previous, next, last section, table of contents.