View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
intersectPlaneSurf II

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 34.3 KB File ID: #32256 Version: 1.2
image thumbnail

intersectPlaneSurf II



19 Jul 2011 (Updated )

Intersection of a plane with an arbitrary surface

| Watch this File

File Information

Intersection of a plane with an arbitrary surface data. The surface must be in the form of faces and vertices strcture such as patch function and the faces of the surface must be defined with triangles. fv =
fv =
       faces: [number of faces x 3 double]
    vertices: [number of vertices x 3 double]
"p0" and "n" is used to define the plane. "p0" is a point that lies on
the plane and "n" is the normal vector of the plane.
The function actually calculates intersection segments of triangels of
the surface with the plane and finally all the calculated segments is
linked to each other to form a continuous intersection region

Note: You must compile provided mex file firstly


Geom3d inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7 (R14)
MATLAB Search Path
Other requirements geom3d toolbox from David Legland for visualization purposes only
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
04 Feb 2016 Nan Luo  
19 Dec 2015 Niklas

Niklas (view profile)

Error: Could not detect a compiler on local system
which can compile the specified input file(s)

what compiler do I need for this to work?

Comment only
21 May 2015 Fritz

Fritz (view profile)

You have to compile the mex-file:

Comment only
20 May 2015 Bart

Bart (view profile)

Thank you very much for the script. I've installed the toolbox on my machine with Matlab R2015a, but when I run the function I get the error 'Undefined function or variable 'IntersectPlaneTriangle'. How can I solve this?

Comment only
25 Jun 2012 Mehryar Emambakhsh  
19 Jul 2011 Ben

Ben (view profile)

Nice function, thanks!

22 Jul 2011 1.1

Not an update, a small correction has been made in the name of the function.

20 Nov 2014 1.2

Will be available as a Toolbox file

Contact us