Code covered by the BSD License  

Highlights from
Quick Structured Mesh Generator

5.0

5.0 | 1 rating Rate this file 39 Downloads (last 30 days) File Size: 4.57 KB File ID: #32372
image thumbnail

Quick Structured Mesh Generator

by Tolga Birdal

 

28 Jul 2011

Fast generation of structured meshes given the vertices (MEX!). Interpolation/resizing of the mesh.

| Watch this File

File Information
Description

This is a very simple m file. It creates a structured mesh out of the given 3D vertices or a depth map and utilizes the same technique for resizing the mesh.

The code is heavily commented, so you will be able to find all the details of implementation within the code.

Description:
This function creates a structured mesh out of ordered vertices.
It's useful for dealing with depth maps and treating them as meshes. Kinect or ToF cameras would be an option. gen_structured_mesh is a C mex file doing the actual meshing. It doesnt' produce sorted vertex-face list, so if we really require sorting, we should do it separately (a sample which does the sorting is also included). To display the mesh, I make use of Dr. Vladimir Bondarenk's drawMesh function.

Usage:
The code itself includes the test function. Just run it without any parameters.

Copyright (c) 2011, Tolga Birdal <http://www.tbirdal.me>;

MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
09 Oct 2011 Li Yunfei  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
structured mesh Tolga Birdal 28 Jul 2011 11:52:28
depth map Tolga Birdal 28 Jul 2011 11:52:28
point cloud Tolga Birdal 28 Jul 2011 11:52:28
kinect Tolga Birdal 28 Jul 2011 11:52:28
tof Tolga Birdal 28 Jul 2011 11:52:28
refine Tolga Birdal 28 Jul 2011 11:52:28
interpolate Tolga Birdal 28 Jul 2011 11:52:28
3d Tolga Birdal 28 Jul 2011 11:52:28
fast Tolga Birdal 28 Jul 2011 11:52:28
mex Tolga Birdal 28 Jul 2011 11:52:28
image processing Tolga Birdal 28 Jul 2011 11:52:28
graphics Tolga Birdal 28 Jul 2011 11:52:28
interpolation Tolga Birdal 28 Jul 2011 11:52:28
3d Hamid Sarlak 20 Feb 2012 09:44:05

Contact us at files@mathworks.com