This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Tests distance between point and triangle in 3D. Aligns and uses 2D technique. | |
# | |
# Was originally some code on mathworks | |
import numpy | |
from numpy import dot | |
from math import sqrt |