View License

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

» Watch video

Highlights from
Quick Structured Mesh Generator

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

3.0
3.0 | 2 ratings Rate this file 11 Downloads (last 30 days) File Size: 4.57 KB File ID: #32372 Version: 1.0
image thumbnail

Quick Structured Mesh Generator

by

Tolga Birdal (view profile)

 

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 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
08 Nov 2016 Long Nguyen Tuan

no function: points_to_mesh_structured

25 Sep 2015 Audrey Cheong

Are there instructions for how to run this? I get the following error:

Correction:
>> make_mesh_structured
Undefined function or variable 'points_to_mesh_structured'.

Is there a function where I can pass in a list of 3D coordinates and get back a list of triangular faces?

Comment only
25 Sep 2015 Audrey Cheong

Are there instructions for how to run this? I get the following error:

>> make_mesh_structured
Undefined function or variable 'gen_structured_mesh'.

Is there a function where I can pass in a list of 3D coordinates and get back a list of triangular faces?

Comment only
09 Oct 2011 Li Yunfei  

Contact us