iso2mesh: a 3D surface and volumetric mesh generator for matlab/octave

January 12, 2010 by Admin · Leave a Comment
Filed under: Biotecnology, CAD, Computational Geometry, Graphics, Medicine 
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)
VN:F [1.8.1_1037]
Rating: 10.0/10 (1 vote cast)

  • A sibling project, metch – a mesh registration toolbox, is also hosted with this website.

Learn Qianqian’s other projects

Learn more on: http://iso2mesh.sourceforge.net/cgi-bin/index.cgi

VN:F [1.8.1_1037]
Rating: 10.0/10 (1 vote cast)
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)

Popularity: 4% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

Surface Reconstruction From Scattered Points Cloud: MyCrustOpen

September 7, 2009 by Luigi Giaccari · 8 Comments
Filed under: CAD, Computational Geometry, Graphics 
VN:F [1.8.1_1037]
Rating: +2 (from 2 votes)
VN:F [1.8.1_1037]
Rating: 8.8/10 (5 votes cast)

Meximg

This part, differently from the first one, supports any kind of open surfaces. It can substitute tools like griddata in cases where points are completly scattered. If they aren’t in z=f(x,y) form griddata doesn’t work, a surface recostructor is needed.

Here is a brief description:

This version has been developed for open surface.

Differently from crust based algorithm does not ensure a tight triangluation and sometimes self-intersecant triangles are generated, it is also generally slower. The final surface may need some repair work which this utility does not offer.

But there are two great advantages, it can be applied on any kind of open surface for which the Crust fails, it supports not regular surface like the Moebius ribbon, and most of all, surface can have any kind of holes, open feature shouldn’t create problem.
You can see the screenshot or demo models for examples.

Here is a simple example:

load Nefertiti.mat%load input points from mat file
 
[t]=MyCrustOpen(p);
 
figure(1)
 
hold on title('Output Triangulation','fontsize',14)
 axis equal
 trisurf(t,p(:,1),p(:,2),p(:,3),'facecolor','c','edgecolor','b')

Input:
p is a Nx3 array containing the 3D set of points
Output:
t are points id contained in triangles nx3 array .

If any problems occurs in execution, or if you found a bug, have a suggestion or question just contact me at:

giaccariluigi@msn.com

reports about models on which the algorithm fails are greatly aprecciated.

This work is free thanks to users gratitude, if you find it useful consider buying me a beer. Thank you.

Download Now
Due to heavy request, assistance and consulting is reserved only to contributors

VN:F [1.8.1_1037]
Rating: 8.8/10 (5 votes cast)
VN:F [1.8.1_1037]
Rating: +2 (from 2 votes)

Popularity: 33% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

3D Triangulated Models Collection

August 21, 2009 by Luigi Giaccari · 8 Comments
Filed under: CAD, Computational Geometry, Graphics 
VN:F [1.8.1_1037]
Rating: +1 (from 1 vote)
VN:F [1.8.1_1037]
Rating: 8.0/10 (1 vote cast)

Models

This file contains a set of 3D models with the following characteristics:

  • p: nx3 array of 3D points
  • t: ntx3 array of triangles id. First points flagged as 1.
  • tnorm: ntx3 arrays normals of triangles with outward orientation.

You can use this package to test your algorithms.

Models can be dowloaded here.

All models were created with the new MyRobustCrust.

In the new version all triangles have the same orientation, this allows for nice graphics rendering.

For bugs,infos:

giaccariluigi@msn.com

You can download a demo script which shows all the models here:

Download Now

VN:F [1.8.1_1037]
Rating: 8.0/10 (1 vote cast)
VN:F [1.8.1_1037]
Rating: +1 (from 1 vote)

Popularity: 45% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

In-Polyhedron Test

August 14, 2009 by Luigi Giaccari · 2 Comments
Filed under: CAD, Computational Geometry, Graphics 
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)
VN:F [1.8.1_1037]
Rating: 0.0/10 (0 votes cast)

INPOlyedron2

InPolyedron detects points inside a manifold closed surface (even non convex ones). The normal orientation is assumed to be outwards. Warning there is no check for closed surface or normal orientation, open surfaces will give nonsense results.

In the limit of numerical accuracy, points lying on the surface will be considered in.

Usage

Input:

  • p:  points of the surface npx3 array
  • t: triangles indexes, first points flagged as one, ntx3 array
  • tnorm:  outward normals of traingles, ntx3 array
  • qp:  points to be queried, nqx3 array

Output:

  • in: nqx1 logical vector, true for in, false for out

Author: Giaccari Luigi
Created: 15/05/2009
e-mail: giaccariluigi@msn.com

Download Now

VN:F [1.8.1_1037]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)

Popularity: 68% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

Basic Gear Design

August 13, 2009 by Luigi Giaccari · Leave a Comment
Filed under: CAD, Mechanics 
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)
VN:F [1.8.1_1037]
Rating: 0.0/10 (0 votes cast)

Image Gear

Here you can find a simple tool to draw basic 3D spur gears feature. This tool is under development and collaboration is greatly appreciated. Several estention and improvements are possible. This can even be a basic brick for other graphical projects.

GearDesign returns the basic triangulated model of a 3D spur Gear. It requires in input a few standard parameter to insert in a structure. Here you can find the explanation of all parameters, for those who are not confident with mechanics but are curious to use this utility I suggest:

http://en.wikipedia.org/wiki/Gear

The INPUT parameters are:

  • The Gear structure
    Gear.m=1;%modulus
    Gear.z=20;%number of teeth
    Gear.Alpha=20;%Pressure angle degree
    Gear.Addendum=1;%addendum/modulus ratio
    Gear.Dedendum=1.25;%dedendum/modulus ratio
    Gear.FaceWidth=10;%Face width
    Gear.ShaftDiameter=4;%shaft diameter [mm]
    Gear.numpoint=10;%number of points to approximate the tooth profile
    Gear.t=[];%here will be stored the triangulation
    Gear.p=[];%here will be stored points data
  • plotflag: turn on a plot of the designed gear

The OUTPUT parameter is the Gear structure but with filled:

  • Gear.t (triangles)
  • Gear.p (points).

Here is a an example:

% BUILD THE GEAR STRUCTURE
Gear2.m=1;%modulus
Gear2.z=30;%number of teeth
Gear2.Alpha=20;%Pressure angle degree
Gear2.Addendum=1;%addendum/modulus ratio
Gear2.Dedendum=1.25;%dedendum/modulus ratio
Gear2.FaceWidth=4;%face width
Gear2.ShaftDiameter=8;%shaft diameter
Gear2.numpoint=10;%points to approximate the tooth profile
Gear2.t=[];%for the output
Gear2.p=[];%for the output

<p style="text-align: left;">% GEAR DESIGN
Gear2=GearDesign(Gear2,true);

A routine to experiment gears motion is provided.

GearMotion

For problems, questions, suggestions,:

giaccariluigi@msn.com

Created: 18/01/2009
Last Update: 18/01/2009
Author: Giaccari Luigi

Download Now

VN:F [1.8.1_1037]
Rating: 0.0/10 (0 votes cast)
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)

Popularity: 58% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

Next Page »