image thumbnail

updated 6 days ago

Convex Hull, Delaunay Triangulation & Voronoi Diagram by George Papazafeiropoulos

Convex hull, Delaunay triangulation & Voronoi diagram algorithms, and their applications. (bounding box, concave, convex)

Bounding box of a random point set in 2-dimensional space

Bounding box of a random point set in 3-dimensional space

Bounding box of a random point set in 4-dimensional space

image thumbnail

updated 7 days ago

Pointsinpolyhedron-Test if points are in polyhedron by guo YuFei

Test if points are inside/outside/on single material or multi-material triangulated polyhedron (point, points, polyhedron)

Tutorial and examples of PINPOLYHEDRON function

first_step.m

image thumbnail

updated 7 days ago

Finite Element Triangular Mesh Generator by Kehinde OROLU

This function generates triangular mesh for a rectangular shape structure for FEM analysis (mesh, finite element analys..., matrix)

femTriangularMeshGenerator(Lx,Ly,Nx,NE)

FEMmeshExample.m

image thumbnail

updated 23 days ago

ColorBrewer: Attractive and Distinctive Colormaps by Stephen Cobeldick

The complete palette of ColorBrewer colormaps. Simple selection by scheme name and map length. (colormap, colorbrewer, rgb)

brewermap(N,scheme)

brewermap_read(man)

image thumbnail

updated 1 month ago

punctureSurface by Paul Kassebaum

Create a 3D printable meshed surface (3d printing, stl, mesh)

punctureSurface(manifold, boundVert, holeSize, shellThick...

tPunctureSurface.m

image thumbnail

updated 1 month ago

geom3d by David Legland

Library to handle 3D geometric primitives: create, intersect, display, and make basic computations (potw, pick of the week, 3d)

demoDrawTubularMesh

demoGeom3d

demoInertiaEllipsoid

image thumbnail

updated 1 month ago

3D mesh transform using sparse control points by Daniel Markel

Performs a 3D non-rigid deformation using irregularly placed transformation vectors (non rigid, deformation, sparse)

inhull(testpts,xyz,tess,tol)

mesh_transform3D2(im,bold,bnew,tmesh,X,Y,Z)

image thumbnail

updated 1 month ago

meshArea.m by Thomas

Calculate the area of a triangular irregular network (point cloud, tin, mesh)

meshArea(faces, points)

image thumbnail

updated 3 months ago

Export figure to 3D interactive PDF by Ioannis Filippidis

Export figure as U3D file or directly to 3D interactive graphics within PDF. (3d, u3d, graphics)

image thumbnail

updated 4 months ago

fastscatter.m by Aslak Grinsted

A much faster scatterplot (scatter, scatterplot, points)

h=fastscatter(X,Y,C,varargin)

image thumbnail

updated 5 months ago

Curvature Estimationl On triangle mesh by Itzik Ben Shabat

Computes curvature and curvature derivative tensors in each vertex of a triangle meshes (curvature, mesh, computational geometr...)

GetCurvaturesAndDerivatives( FV,toggleDerivatives )

[FaceCMatrix,VertexCMatrix,Cmagnitude]=CalcCurvatureDeriv...

[FaceNormals]=CalcFaceNormals(FV)

image thumbnail

updated 5 months 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 5 months ago

Compute a Tutte map of a planar surface triangulation by Dylan Muir

Map a surface mesh onto a planar unit circle, using Tutte's algorithm (surface, triangulation, mesh)

TutteMap(mnTriangulation)

[ mnEdges, mbVertVertAdjacency, ...

image thumbnail

updated 5 months ago

Fast Loop mesh subdivision by Dylan Muir

Subdivide a surface mesh, using Loop subdivision. Boundary- and shape-maintaining (surface, mesh, triangulation)

...

image thumbnail

updated 6 months ago

Kohonen's Self Organizing Feature Map by ammar al jodah

This SOM will learn a 3d shape of random features (kohonen, self organizing featu..., som)

som3dmesh.m

image thumbnail

updated 7 months ago

Unstructured quadrilateral mesh quality assessment by Allan Peter Engsig-Karup

Assess the quality of a quadrilateral mesh using a simple indicator. (mesh, quality, quadrilateral)

MeshQualityQuads(EToV,VX,VY)

image thumbnail

updated 8 months ago

Fast Alpha Hulls (alpha shapes in 3d; parfor enabled) by Dylan Muir

Compute the alpha hulls (exterior and interior) of a set of points. (alpha hull, shape, surface)

AlphaHull(mfPoints, fAlphaRadius, triDelaunay)

TriCircumcenter(vfPoint1, vfPoint2, vfPoint3)

image thumbnail

updated 9 months ago

inpolyhedron - are points inside a triangulated volume? by Sven

Test if 3d points are inside a mesh. Or, voxelise a mask from a surface. Mesh can be non-convex too! (inpolygon, stl, mesh)

inpolyhedron(varargin)

image thumbnail

updated 10 months ago

Dataplot3 by Tapiwa

2D position versus value plot with random position (temperature, plot, field)

dataplot3( Data, Pos, res )

image thumbnail

updated 10 months ago

surf2solid - make a solid volume from a surface for 3D printing by Sven

Turns thin surfaces into closed solids by adding a flat base or offsetting by a given thickness. (stl, patch, mesh)

surf2solid(varargin)

image thumbnail

updated 11 months ago

intriangulation - which points are inside a 3d watertight triangulation? by Johannes Korsawe

Are 3D-testpoints located inside or outside an arbitrary watertight mesh with vertices and faces? (inside, 3d, point)

intriangulation(vertices,faces,testp)

image thumbnail

updated 1 year ago

MSH (fluent mesh) reader by Wouter

This function loads a fluent mesh (*.msh file) into an matlab struct. (mesh, import, fluent)

mshread( filelocation, disp_loading_progress )

image thumbnail

updated 1 year ago

2D image to STL mesh by Pasquale Franciosa

Convert 2D images to 3D stl CAD model (image processing, mesh, gui tools)

View3dIMAGE.m

view3d(arg,arg2)

image thumbnail

updated 1 year ago

unifyMeshNormals by Sven

Aligns adjacent faces in a triangulated mesh surface or volume (mesh, stl, normal)

unifyMeshNormals( varargin )

image thumbnail

updated 1 year ago

Linear Blend Skinning by Aaron Wetzler

Simple example of linear blend skinning in Matlab (skinning, linear blend skinning, mesh)

loadbvh(fname)

plotax(pt,R,sz)

DEMO_lbs.m

image thumbnail

updated 1 year ago

gradedmesh by Ben Postlethwaite

Meta-function and optional GUI that transforms linear mesh coordinates into a chosen graded mesh (mesh graded gradedmes..., mesh graded gradedmes..., mesh)

meshfunc(curve, weight)

meshgui(varargin)

plotmesh( x, z )

image thumbnail

updated 1 year ago

3D Surface Plot For Data Visualization by Yehonatan Peleg

Easy to use function for 3d surface plotting of sample data. (3d, 3d surface, 3d plot)

vecsurf_demo

vecsurf(varargin)

vecsurf_testmain.m

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

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

stlwrite - Write binary or ascii STL file by Sven

Export a variety of inputs (patch, surface) to an STL triangular mesh (data import, data export, stl)

stlwrite(filename, varargin)

image thumbnail

updated 1 year ago

Grid Generation by Siva Srinivas Kolukula

To demonstrate grid generation using analytic coordinates systems. (grid, grid generation, mesh)

BipolarCoordinates(Xi,Eta,a)

EllipticCylinderCoordinates(Xi,Eta,a)

Horseshoe(Xi,Eta,row,b0,b1)

image thumbnail

updated 1 year ago

Spin/Rotate your plot! by Yu Ang Tan

Spins your plot in the z-axis! (cool, awesome, visual)

spin3dplot

image thumbnail

updated almost 2 years ago

Mesh voxelisation by Adam A

Voxelise a triangular-polygon mesh. (cad, stl, data import)

COMPUTE_mesh_normals(meshdataIN,invertYN)

CONVERT_meshformat(varargin)

READ_stl(stlFILENAME,varargin)

image thumbnail

updated 2 years ago

Parametrized uniform triangulation of 3D circle/sphere by Arso

Short function for parametric triangulation of 3d sphere (circle, sphere, triangulation)

sphereTriangulation(numIterations, radius)

testSphereTriangulation.m

image thumbnail

updated 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 2 years ago

regular_mesh by Immanuel Anjam

Regular (uniform) meshes for non-rectangular domains. (regular, uniform, mesh)

[x,y]=geom(bs,s)

[x,y]=geom(bs,s)

drawedges(geom)

image thumbnail

updated 2 years ago

read_tetgenmesh by Immanuel Anjam

Reads Tetgen meshes into Matlab (tetgen, 3d, mesh)

read_tetgenmesh( file )

test.m

image thumbnail

updated 2 years ago

Converting a 3D logical array into an STL surface mesh by Adam A

Conversion of a voxelised object contained within a 3D logical array into an STL surface mesh. (stl, cad, data export)

CONVERT_meshformat(varargin)

CONVERT_voxels_to_stl(STLname,gridDATA,gridX,gridY,gridZ,...

READ_stl(stlFILENAME,varargin)

image thumbnail

updated 2 years ago

Polygon2Voxel by Dirk-Jan Kroon

Convert a triangulated mesh into a voxel volume (discretization, mesh, polygons)

Volume=polygon2voxel(FV,VolumeSize,mode,Yxz)

Volume=polygon2voxel_double(FacesA,FacesB,FacesC,Vertices...

image thumbnail

updated 2 years ago

stlwrite - Write binary or ascii STL file by Grant Lohsen

This is an update to the excellent work done by Sven Holcombe to add color support (data export, data import, mesh)

stlwrite(filename, varargin)

image thumbnail

updated almost 3 years ago

loadAmiraMesh by Cengiz Gunay

Load Amira Mesh 3D ASCII data (amira, mesh, data)

loadAmiraMesh(filename, isverbose)

image thumbnail

updated almost 3 years ago

The Plane Stress Problem by Siva Srinivas Kolukula

Plate under uniform tension at its edges is solved using Finite Element Method (finite element method, postprocessing, plate)

GaussQuadrature(ngl)

PlotFieldonMesh(coordinates,nodes,component)

PlotMesh(coordinates,nodes)

image thumbnail

updated almost 3 years ago

Meshing thin shells using four noded elements by Siva Srinivas Kolukula

To mesh thin shells using four noded elements to use in Finite Element Analysis (thin shells, preprocessing, finite element analys...)

MeshConicalShell(Radius,theta,Height,NT,NR)

MeshCylindricalShell(Radius,theta,Height,NH,NT)

MeshSphericalShell(Radius,Height,theta,phi,N)

image thumbnail

updated 3 years ago

Meshing a plate using four noded elements by Siva Srinivas Kolukula

To mesh a plate with four noded elements for Finite Element Analysis (preprocessing, mesh, nodes)

MeshCircularPlate(Radius,theta,NR,NT)

MeshRectanglularPlate(L,B,Nx,Ny)

SHOWELEMENTS(ShowElements,ShowNodes,coordinates,X,Y,nel,n...

image thumbnail

updated 3 years ago

vtkpipe by LeFlaux

Pipe visualization data to vtk files. (vtk, visualization, data export)

vtkquiver(x, y, z, u, v, w, varname, filename)

vtkseries(t, f, filename)

vtktrisurf(tri, x, y, z, argin5, argin6, argin7)

image thumbnail

updated 3 years ago

QUADPLOT - for plotting 2D quad-meshes by Allan Peter Engsig-Karup

QUADPLOT is a routine for plotting 2D meshes based on quadrilaterals. (mesh, plot, quads)

quadplot(quad,varargin)

image thumbnail

updated 3 years ago

QUADPLOT - for plotting 2D quad-meshes by Allan Peter Engsig-Karup

QUADPLOT - for plotting 2D quad-meshes in Matlab. (mesh, plot, quad)

quadplot(quad,varargin)

image thumbnail

updated 3 years ago

Wavefront OBJ toolbox by Dirk-Jan Kroon

Read and Write Wavefront OBJ geometry and MTL files (obj, wavefront, wobj)

OBJ=read_wobj(fullfilename)

write_wobj(OBJ,fullfilename)

image thumbnail

updated 3 years ago

Generate U3D files from STL models for making multilayer 3D PDF figures by Francis Esmonde-White

Conversion of meshes into U3D files for making multilayer 3D PDF figures with transparency. (stl, mesh, 3d)

idtf2u3d(idtf_filename, u3d_filename)

installGoogleArchive(downloadLocation, zipFile)

mesh2idtf(varargin)

image thumbnail

updated almost 4 years ago

Create 3D-interactive HTML File from MATLAB surface, Part2 by Sven Koerner

This function allows to show 3d-surface plots in html - documents. (figure, html, interactive)

javaview_nosym(surface_handle, filename, destination, sou...

Contact us