tin:gettriangles
(tin:gettriangles tinEname
[visibleOnly])
This function returns all or only the visible
triangles used by the tinEname
TinSurface entity.
Arguments
|
tinEname (ename or vla-object) the TinSurface entity to
query
visibleOnly (optional, T/NIL) specifies whether to use all
triangles (NIL), or only visible triangles (T) will be
returned;
if omitted. defaults to NIL, returning all
triangles
|
Return
|
(compound list) list of
N entries
1. entry : list of all 3d definition
points
followed by a list of triangle definitions
:
each triangle definition is a list of 3
integer entries, specifying the index of the point in the point
list (first list)
|
Example
|
(tin:getTriangles tin
T)
(
((10.0 10.0 2.0) (25.0 25.0 6.0) (10.0 80.0
5.0) (80.0 20.0 7.0) (50.0 50.0 10.0) (75.0 45.0 5.0) (55.0 55.0
2.0) (40.0 70.0 10.0) (70.0 60.0 3.0))
(5 8 6) (6 8 7) (1 4 7) (1 2 0) (7 2 1) (5 6
4) (6 7 4) (4 3 5) (1 0 3) (1 3 4)
)
|
Remarks
|
see (tin:getpoints) function
|