Fast vectorized triangle/ray intersection algorithm
软件应用简介

Ray/triangle intersection using the algorithm proposed by M?ller and
Trumbore (1997), implemented as highly vectorized MATLAB code.
The algorithm can work with one and two sided surfaces, as well as, with
infinite lines, rays (lines bounded on one side) and segments (lines bounded on
both sides).
Input (all arrays in in Nx3, where N is number of vertices or rays):
orig : ray’s origin
dir : ray’s direction
vert0, vert1, vert2: vertices of the triangle
Output:
Intersect – boolean array of length N
t – distance from the ray origin to the intersection point in |dir|
u,v – barycentric coordinates of the intersection point units
xcoor – carthesian coordinates of the intersection point
In addition PointInsideVolume is 3D equivalent to 2D inpolygon function and can test if
array of points is inside or outside any volume defined by the surface grid.
界面展示

结果示意

规格 价
0元试用 |
---|
0.0元人民币/月 |
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!