image thumbnail

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

unifyMeshNormals by Sven

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

unifyMeshNormals( 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

Spherical Triangle Plot Script by Jacco

Draws a spherical triangle on a unit sphere, given its coordinates. (aerospace, space, mission geometry)

drawSphericalTriangle(P1,P2,P3,varargin)

image thumbnail

updated 4 years ago

Preprocess CP2TFORM by Dirk-Jan Kroon

Removes folded over triangles in piecewise linear image transformation, so cp2tform always works. (cp2tform, foldover, triangles)

[uv xy]=PreProcessCp2tform(uv,xy)

image thumbnail

updated 4 years ago

Volume of a surface triangulation by Krishnan Suresh

Given a surface triangulation, compute the volume enclosed using divergence theorem. (stl, volume, triangles)

stlVolume(p,t)

Contact us