Rayintersectinface
From GMLwiki
face:E pt:P3 dir:P3 → 0 face:E pt:P3 dir:P3 → t:F pRay:P pFace:P e:E 1 face:E pt:P3 dir:P3 → t:F pRay:P pFace:P e:E 2
[edit] Description
projects the ray (pt,dir) in face
- flag = 0: no hit, no further items
- flag = 1: edge was hit
- flag = 2: vertex was hit
t is the parameter for the hit point: p = pt+t*dir e is the edge that was hit, for edge hit (flag=1) pFace lies on segment from [ e, e faceCCW ]
