Code covered by the BSD License  

Highlights from
surfi

4.0

4.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 8.08 KB File ID: #6169
image thumbnail

surfi

by Ben Mitch

 

02 Nov 2004 (Updated 30 Aug 2010)

Plot (or return) surface interpolated from supplied vertices.

| Watch this File

File Information
Description

I often need to visualise a surface formed by a set of vertices when those vertices are not on a regular grid. surf() won't do this, so i made this file to generate the surface then plot it. The suffix `i' indicates "interpolate".

Also included is triangulate (a port from third party code, see help for details), which returns the surface without plotting it. This needs compiling before use.

Note that if you sort vertices before passing them to the function performance will generally be better, since you can sort them more intelligently than the algorithm can. See "help surfi".

MATLAB release MATLAB 7.7 (R2008b)
Other requirements You must compile triangulate before using surfi - try "triangulate compile".
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Nov 2004 gok gok

great stuff!
found that results depends on sorting direction.
are you going to add contour generator?

Please login to add a comment or rating.
Updates
29 Nov 2004

more info

30 Aug 2010

Added missing file, and tidied interfaces and help. Added auto-compile script.

Tag Activity for this File
Tag Applied By Date/Time
visualization Ben Mitch 31 Aug 2010 09:33:30
3d Ben Mitch 31 Aug 2010 09:33:31
plot Ben Mitch 31 Aug 2010 09:33:31
plotting Ben Mitch 31 Aug 2010 09:33:31
surface Ben Mitch 31 Aug 2010 09:33:31
rendering Ben Mitch 31 Aug 2010 09:33:31

Contact us at files@mathworks.com