matlab实现平面间相交段的计算

收录时间:2019-05-11
资源分类:Matlab 工具:MATLAB 7 (R14)

matlab实现平面间相交段的计算

 

IntersectPlaneTriangle mex

Calculation of intersection segment between a plane (defined with a point p0 that lies on the plane and a normal vector n of that plane) and a triangle (defined with its vertices P1, P2 and P3)

 

N : Normal to plane , |N| = 1, N->(nx3)

Q : Point into the plane, Q->(nx3)

 

P1,P2,P3 : Triangle vertices, P1,P2,P3->(nx3)

 

return : 0 if no intersection

U : Intersection points, U->(3x2)

 

You can use the provided example.m file for usage of this function

文件下载列表
附件内容(只显示4中的2个)
example.m  IntersectPlaneTriangle.cpp  
更多

目前尚无评论

用户反馈   关于我们
Copyright (©) ZHIHUISHI.COM 2013 All Rights Reserved.
京ICP备14040384号