Previous Next Up Title Contents Index Functions Index Top Library

1.4.3. DESCRIBING A STRUCTURE PRODUCED BY THE TSCENE FUNCTION

Creating the scene identifier SCENID, with the view index VIEWID, consisting of structures S3, S2 and S5.

Example 1:


INTEGER IDLIST(3)
CALLTDOMA2  (0.0, 0.0, 5.0,10.0)
IDLIST(1) = S3
IDLIST(2) = S2
IDLIST(3) = S5
CALL TSCENE (SCENID, 3,IDLIST, VIEWID)
The structure identifier SCENID consists of the following elements
CALL PLB (0)
CALL PSTXFN (-9)
CALL PSVWI (VIEWID)
CALL PSLMT (matrix_2D,...)
CALL PSMCV (...)
CALL PLB (0)

CALL PLB (S3)
CALL PLB (S3)
CALL PEXST (S3)

CALL PLB (S2)
CALL PLB (S2)
CALL PEXST (S2)

CALL PLB (S5)
CALL PLB (S5)
CALL PEXST (S5)
where matrix_2D is a set transforming the rectangular domain (0, 5, 0, 10) into a square (0,1, 0,1)

Example 2:

INTEGER IDLIST(3)
CALLTDOMA3  (0.0,0.0,5.0, 5.0,10.0,20.0)
IDLIST(1) = S3
IDLIST(2) = S2
IDLIST(3) = S5
CALL TSCENE (SCENID, 3,IDLIST, VIEWID)
The structure identifier SCENID consists of the following elements
CALL PLB (0)
CALL PSTXFN (-9)
CALL PSVWI (VIEWID)
CALL PSLMT3 (matrix_3D)
CALL PSMCV3 (...)
CALL PLB (0)

CALL PLB (S3)
CALL PLB (S3)
CALL PEXST (S3)

CALL PLB (S2)
CALL PLB (S2)
CALL PEXST (S2)

CALL PLB (S5)
CALL PLB (S5)
CALL PEXST (S5)

where matrix_3D is a set transforming the domain parallelepiped (0, 5, 0, 10, 5,20) into a cube (0,1, 0,1, 0,1)

The part of the CSS corresponding to the scene may be represented by the diagram below


Previous Next Up Title Contents Index Functions Index Top Library