gridtrimesh Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: gridtrimesh.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Willie Brink (View more)

gridtrimesh script description:



gridtrimesh is a Matlab script for Mathematics scripts design by Willie Brink. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
gridtrimesh fits a square grid surface of the form z = f(x,y) to a triangular mesh surface.

Publisher review:
gridtrimesh fits a square grid surface of the form z = f(x,y) to a triangular mesh surface. The function GRIDTRIMESH fits a surface of the form Z = F(X,Y) to a given triangular mesh. Inputs X and Y are assumed to be produced by something similar to MESHGRID and the result could then be visualized by a simple SURF(X,Y,Z).The triangular mesh on which this function operates should be defined in the usual way by two matrices F and V. MATLAB functions that use similar representations include TRIMESH, TRISURF and REDUCEPATCH. The included example file BEETHOVEN.MAT contains two such matrices.A main advantage that this function has over the internal function GRIDDATA is that it operates not only on the set of vertices but also on the given triangulation. GRIDDATA first performs a Delaunay triangulation on the projected data points and subsequently always yields a surface that has a convex domain in the xy-plane. Another major drawback of GRIDDATA is that it handles surfaces that are not so-called 2.5D poorly (a "2.5D" surface has the property that for any xy-pair there exists at most one z-value on the surface, e.g. any function z = f(x,y)).This is because GRIDDATA projects all points to the xy-plane and then triangulates them without considering their original positions in 3-space. GRIDTRIMESH, on the other hand, considers all intersections that the ray through a particular gridpoint makes with the surface in 3D and then picks the maximum z-value. This emulates the idea of dropping a piece of cloth over the surface from above (i.e. from somewhere on the positive z-axis).Another favourable trait of this function is its speed. I've tested it on the well-known Stanford bunny that consists of approximately 70,000 triangles. For a 100-by-100 grid (which is 10,000 points to be sampled) the function executes in about 2.4 seconds.For those requiring more speed a MEX version of the function, called MXGRIDTRIMESH, is also supplied. This function may be used in exactly the same manner and produces exacly the same answer as GRIDTRIMESH. But since MXGRIDTRIMESH was written in C and then compiled with MEX it performs better. It required about 0.2 seconds for the Stanford bunny on a 100-by-100 grid and only about 2 seconds for a 1,000-by-1,000 grid (a million points!!).The attached zip-file also includes an example script called DEMONSTRATION which can be run directly (you may need to recompile MXGRIDTRIMESH first, however).CAUTION: at this stage the inputs X and Y must be generated by meshgrid(x,y) where x and y are monotonically increasing vectors. The function might go into an infinite loop if this is not the case!!
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

Apple prepares iPhone 5 and iOS 6

Apple prepares iPhone 5 and iOS 6

New information coming from some sources close to Apple confirming that the Cupertino giant is testing two different models of iPhone, called internal iPhone5, 1 and iPhone 5.2. Apparently, both devices have a screen of 3.95 inches and a resolution of 113

Posted on: 24 May 2012 08:36 by A. Brown

Windows 8 estimates: 500 million users in 2013

Windows 8 estimates: 500 million users in 2013

Microsoft expects to launch a new wave of optimism with Windows 8. In a recent statement, Steve Ballmer, chief executive at Microsoft, estimates that Windows 8 will reach a total of about 500 million users by the end of 2013.

Posted on: 24 May 2012 08:25 by A. Brown

SPREAD THE WORD

User Rating

gridtrimesh
Rating: 3.0 out of 5
Based on 1 ratings. 1 user reviews.

  • Currently 3.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5