Example #1
0
 def isOccluded(self, pt1, pt2):
     vd = pt2 - pt1
     tMax = Utils.norm2(vd)
     vd = Utils.normalize(vd)
     isIntersect, t = Utils.rayIntersectObjects(pt1, vd, self.facesList, self.pointsList, 0, tMax)
     
     return isIntersect
Example #2
0
 def firstHit(self, pt, vd):
     tMin = 0
     tMax =  float('inf')
     isHit, t = Utils.rayIntersectObjects(pt, vd, self.facesList, self.pointsList, tMin, tMax)
     return (isHit, t)