tin:getintersectionswithline


(tin:getintersectionswithline  tinEname  point1  point2  allOrFirst  visibleOnly)

This function returns all (or first) intersection point(s) for the tinEname TinSurface entity with a line from point1 to point2, for all or visible triangles.

Arguments

tinEname  (ename or vla-object)  the TinSurface entity to query
point1  (3d point list)  the start point of the "line"
point2  (3d point list)  the end point of the "line"
allOrFirst  (T/NIL)  specifies whether all (T) intersection points are returned, or only the first (NIL)
visibleOnly  (T/NIL) specifies whether to use the triangles of all definition points (NIL), or only the triangles of visible points (T)

Return

(list of 3d points) the list of 3d intersection points (one or multiple)

Example

(tin:getIntersectionsWithLine tin '(-10 30 4) '(100 50 8) T T)
((67.44 44.08 6.816) (18.780487804878 35.2328159645233 5.04656319290466))

(tin:getIntersectionsWithLine tin '(-10 30 4) '(100 50 8) T NIL)
((67.44 44.08 6.816) (18.780487804878 35.2328159645233 5.04656319290466))

(tin:getIntersectionsWithLine tin '(-10 30 4) '(100 50 8) NIL T)
((18.780487804878 35.2328159645233 5.04656319290466))

(tin:getIntersectionsWithLine tin '(-10 30 4) '(100 50 8) NIL NIL)
((18.780487804878 35.2328159645233 5.04656319290466))

Remarks

the "line" is defined as start/end point, it is not an endless vector !



©  Bricsys NV. All rights reserved.