image thumbnail

updated 1 month ago

splitFV - split a mesh by Sven

Splits a 2D or 3D mesh defined by faces and vertices into separately connected mesh pieces. (mesh, separate, split)

splitFV( f, v )

image thumbnail

updated 3 months ago

inertia.m by Thomas

find best fitting plane through x,y,z points and calculate quality metrics (coplanarity/colinearity) (point cloud, vertices, best fit plane)

inertia.m

image thumbnail

updated 8 months ago

Representing Polyhedral Convex Hulls by Vertices or (In)Equalities by Matt J

Express bounded polyhedron via equalities/inequalities or vertices. (vert2con, polyhedron, polytope)

[A,b,Aeq,beq]=vert2lcon(V,tol)

[V,nr,nre]=lcon2vert(A,b,Aeq,beq,TOL,checkbounds)

[varargout]=qlcon2vert(x0,varargin)

image thumbnail

updated 1 year ago

Animated mesh on the web by Benjamin I

Convert a matlab mesh to a transforming 3D figure on the web (html, mesh, animation)

x3mesh_deform(f,v, v2, varargin)

demo1.m

demo2.m

image thumbnail

updated 1 year ago

nonrigidICP by Manu

Non rigid registration of surfaces (icp, iterative closest poi..., registration)

[Prealligned_source,Prealligned_target,transformtarget ]=...

[distancemap]=surfacemap(Vertices,faces,Index)

[distancemax,I,error,Reallignedsource]=ICPmanu_allign2(ta...

image thumbnail

updated 1 year ago

Simple 3D mesh to web converter by Benjamin I

A simple script to convert a mesh consisting of faces and vertices to an interactive html document. (mesh, x3dom, 3d)

x3mesh(f,v, varargin)

demo1.m

demo2.m

image thumbnail

updated 1 year ago

Rigid ICP registration by Manu

rigid transformation (including scaling) of similar 3D point clouds such as anatomical shapes. (vertices, icp, iterative closest poi...)

[Prealligned_source,Prealligned_target,transformtarget ]=...

[error,Reallignedsource,transform]=ICPmanu2(target,source)

[error,Reallignedsource]=ICPmanu_allign2(target,source)

image thumbnail

updated almost 2 years ago

Meshing a spherical shell by Bilen Oytun Peksel

This small function meshes a spherical shell and returns to unique vertices and proper faces matrix (mesh, spherical, nodal connectivity)

mesh_sph (rho,theta,phi)

image thumbnail

updated almost 2 years ago

Vertices and faces matrices generation for rectangular prisms by Bilen Oytun Peksel

Vertices and faces matrices generation for rectangular prisms (faces, vertices, rectangular prism)

gen_vert (ms_x,ms_y,varargin)

image thumbnail

updated 2 years ago

Binary STL file reader by Grant Lohsen

Update of the stlread function by Francis Esmonde-White to properly implement color reading. (3d models, binary, cad)

stlread(filename, verbose)

image thumbnail

updated almost 3 years ago

2D Line Curvature and Normals by Dirk-Jan Kroon

Accurate Curvature and Normals of a line/contour consisting of 2D points (normals, normal, curvature)

N=LineNormals2D(Vertices,Lines)

k=LineCurvature2D(Vertices,Lines)

image thumbnail

updated 3 years ago

A Fast Image Segmentation using Delaunay Triangulation by Abbas Cheddad

A fully automated process that does not require initial estimate of number of clusters. (image segmentation, delaunay triangulatio..., graph cut)

DS.m

DSeg(varargin)

image thumbnail

updated 3 years ago

STL File Reader by Eric Johnson

STLREAD imports geometry from a binary stereolithography (STL) file into MATLAB. (data import, data export, geometry)

3D Model Demo

stlread(file)

image thumbnail

updated 3 years ago

Patch Slim (patchslim.m) by Francis Esmonde-White

Remove duplicate vertices in surface meshes. (stlread, stl file, 3d models)

[vnew, fnew]=patchslim(v, f)

image thumbnail

updated 3 years ago

Binary STL file reader by Francis Esmonde-White

This binary STL file reader is much faster than the existing readers. (stl file, stlreadm, 3d models)

stlread(filename, verbose)

image thumbnail

updated 4 years ago

Texture Patch by Dirk-Jan Kroon

Show a 3D triangulated mesh ( patch ) with a texture (texture, patch, 3d)

mouse3d(varargin)

patcht(FF,VV,TF,VT,I,Options)

image thumbnail

updated 4 years ago

Mesh2Tetra by Dirk-Jan Kroon

Convert a closed triangulated mesh to a tetrahedron volume ( like constrained Delaunay ) (constrained delaunay, delaunay, delaunayn)

C=PointToClosestPointOnPlane(A,B,C,P)

Faces=GetRemainingFaces(T,F,V)

InsidePoints3D(V,F)

image thumbnail

updated 4 years ago

Smooth Triangulated Mesh by Dirk-Jan Kroon

Accurate smoothing of triangulated patch / mesh (curvature, curvature flow, smoothing)

FV2=smoothpatch(FV,mode,itt,lambda,sigma)

Ne=vertex_neighbours(FV)

Ne=vertex_neighbours_double(Fa,Fb,Fc,Vx,Vy,Vz)

image thumbnail

updated 4 years ago

Triangular Mesh Refinement by Dirk-Jan Kroon

This function will refine a triangular mesh with 4-split spline interpolation (approximation, interpolation, triangular)

Fnew=makenewfacelist(F,HT_index, HT_values)

Ne=vertex_neighbours(FV)

Ne=vertex_neighbours_double(Fa,Fb,Fc,Vx,Vy,Vz)

image thumbnail

updated 4 years ago

Triangle Subdivide (vectorized/fast) by Peter Karasev

vectorized 4x triangle subdivision: subdivide_tri.m (mesh, triangle, triangulate)

subdivide_tri( xyz, faces )

image thumbnail

updated 5 years ago

Patch Normals by Dirk-Jan Kroon

Calculates the normal vectors of a triangulated mesh (patch) (patch, isosurface, normals)

N=patchnormals(FV)

[Nx,Ny,Nz]=patchnormals_double(Fa,Fb,Fc,Vx,Vy,Vz)

image thumbnail

updated 5 years ago

Finite Iterative Closest Point by Dirk-Jan Kroon

Iterative Closest Point using finite difference optimization to register 3D point clouds affine. (affine, resize, translate)

Po=movepoints(M,P)

[Points_Moved,M]=ICP_finite(Points_Static, Points_Moving,...

fminlbfgs.m

image thumbnail

updated almost 6 years ago

Image Region Labeling Software by Sinan Kalkan

A Matlab-software with a user-friendly GUI to select arbitrary polygon shapes and label them. (image processing, gui, polygon)

label_gui3(labels)

image thumbnail

updated 6 years ago

readObj by Bernard Abayowa

readObj file into Matlab structure (data import, data export, obj)

readObj(fname)

image thumbnail

updated 10 years ago

GraphView by Ted Imboden

Displays graphs of three to eight vertices (graph theory, displays, vertices)

Contact us