Be the first to rate this file! 8 Downloads (last 30 days) File Size: 20.49 KB File ID: #32255
image thumbnail

IntersectPlaneTriangle mex

by Mehmet OZTURK

 

19 Jul 2011

Calculation of intersection between a plane and a triangle

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
intersection Mehmet OZTURK 19 Jul 2011 13:10:14
plane Mehmet OZTURK 19 Jul 2011 13:10:14
triangle Mehmet OZTURK 19 Jul 2011 13:10:14
mex Mehmet OZTURK 19 Jul 2011 13:10:14

Contact us at files@mathworks.com