image thumbnail

updated 22 hours ago

AABBTREE - A d-dimensional bounding-box tree. by Darren Engwirda

A d-dimensional bounding-box tree for collections of objects. (geometry, 2d, 3d)

image thumbnail

updated 22 hours ago

FINDTRIA - Spatial queries for simplexes. by Darren Engwirda

Efficient spatial queries for collections of d-simplexes. (mathematics, geometry, 2d)

image thumbnail

updated 22 hours ago

DUALMESH - Polygonal mesh construction. by Darren Engwirda

Construct polygonal "dual" meshes from 2-simplex triangulations embedded in R^3. (mathematics, modeling, 2d)

image thumbnail

updated 11 days ago

Fast, robust and exact minimum bounding spheres by Anton Semechko

Compute exact minimum bounding spheres in 3D or approximate bounding spheres in higher dimensions (optimization, geometry, sphere)

ApproxMinBoundSphereND.m

ExactMinBoundSphere3D(X)

FitSphere2Points(X)

image thumbnail

updated 27 days ago

Ellipse - plot an ellipse according to 3 points by Noam Greenboim

ELLIPSE plots an ellipse, and returns its values using 3 points selected by the user on the figure. (ellipse, annotation, geometry)

Ellipse(axis_h,markersFlag,ellipsePlotFlag)

image thumbnail

updated 1 month 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 1 month ago

isrectangle by Matt Eicholtz

Check if vertices form a rectangle (geometry, rectangles)

isrectangle(X,Y)

image thumbnail

updated 1 month ago

IGES Toolbox by Per Bergström

Extracts parameter data in an IGES file to Matlab. (iges, toolbox, data import)

projIGES.m

transformSTL.m

transformIGES.m

image thumbnail

updated 1 month ago

geom2d by David Legland

Geometry library for matlab. Performs geometric computations on points, lines, circles, polygons... (color, mathematics, computational geometr...)

Demo Medial Axis

Draw Poisson lines

demoExpandPolygon

image thumbnail

updated 2 months 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 3 months ago

in_polyhedron by Jaroslaw Tuszynski

Tests if points are inside of triangulated volume. (geometry, inpolygon, inside)

Tutorial and tests of IN_POLYHEDRON function

in_polyhedron.m

image thumbnail

updated 3 months ago

meshArea.m by Thomas

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

meshArea(faces, points)

image thumbnail

updated 6 months ago

fourierShapeDescriptor.zip by Weicheng Kuo

Fourier shape descriptors for simple binary region (tutorial, image processing, geometry)

B=fourierShapeDescriptor(A,r)

image thumbnail

updated 6 months ago

Determine the distance between two ellipses (in 3D) by Rody Oldenhuis

Determine the minimum distance (and corresponding angles) between two ellipses (geometry, ellipse, quartic)

image thumbnail

updated 6 months ago

Convert Image To And From Graph Coordinates by Michael Chan

Illustrates mapping of binary image to graph coordinates and vice-versa. (image, plot, coordinates)

mapPixelsToCoordinatedPlotGraph(pixeliZedScratchPad, ...

plotCoordinatesToImagePixels(x_coordinates, y_coordinates...

usage_ImageToAndFromGraphCooridinates.m

image thumbnail

updated 6 months ago

Robust solver for Lambert's orbital-boundary value problem by Rody Oldenhuis

Solves any Lambert-problem robustly. Can be compiled to increase efficiency. (orbital mechanics, space, space mechanics)

image thumbnail

updated 6 months ago

Intersection of Line to Generalized Ellipse by Paurakh

This function returns the points of intersection between a line and a generalized ellipse (intersection, geometry)

lineEllipse(a, b, h, k, alpha, p, q )

image thumbnail

updated 6 months ago

Oblique Spherical Triangle toolbox by Rody Oldenhuis

solves the general oblique spherical triangle (aerospace, aeronautics, spherical)

image thumbnail

updated 7 months ago

C.A.G.D by Moustafa Mahmoud Abd El-Rahem

3D Computer Aided Geometric Design ToolBox (3d, cagd, cad)

image thumbnail

updated 7 months ago

Shortest distance between two line segments by Nick

Function computes the shortest distance between two line segments. (2d, geometry, intersection)

DistBetween2Segment(p1, p2, p3, p4)

image thumbnail

updated 9 months ago

Perspective projection by Adina Stoica

Perspective projection of 3D line onto plane (perspective projectio..., image processing, geometry)

pts=projectLinePerspective(ray,lookAtPt,PLANE)

image thumbnail

updated 9 months ago

Cylinder_cal by Delvin

Basic calculation of cylinder (geometry)

Cylinder_cal.m

image thumbnail

updated 10 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

QBox by Ying Xiong

A matlab toolbox for quaternion and spatial rotation. (mathematics, geometry, physics)

CheckNear(v1, v2, tol)

QuatConj(q)

QuatFromAxisAngle(ax, theta)

image thumbnail

updated 12 months ago

MATLAB demo of Magic Circle TRIGONOMETRIC calculation with simple and easy arithmetic by AMITAVA BISWAS

Progressively calculates sin and cos values along a circle. (resonator, tuned, trigometry)

biswas51.m

image thumbnail

updated 12 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

Hausdorff Convex Set Distance by Richard Katzwer

Hausdorff metric for convex polygons (hausdorff, computational geometr..., geometry)

Hausdorff

image thumbnail

updated 1 year ago

getVertices by Richard Katzwer

Calculate vertices of feasible set given linear constraints (R^2). (linear algebra, geometry, linear programming)

getVertices( dirs, levels, isSorted )

image thumbnail

updated 1 year ago

compose / decompose 3x3 rotation matrix (comp_decomp_matrix) by Thomas

Compose 3x3 rotation matrix from euler angles or decompose 3x3 rotation matrix to euler angles (geometry, rotation matrix, euler angles)

comp_decomp_matrix(rotations)

image thumbnail

updated 1 year ago

euclideanV by Thomas

Computes the 3D distance between two 3D point sets (3d point cloud, geometry, measurement)

euclideanV(x1, y1, z1, x2, y2, z2)

image thumbnail

updated 1 year ago

euclidean by Thomas

Computes the 3D distance between two xyz point sets represented by two matching nx3 arrays p and c. (geometry, 3d, point cloud)

euclidean(p, c)

image thumbnail

updated 1 year ago

Spirograph GUI by Brian Moore

A MATLAB GUI for generating customizable multilayer spirographs (spirograph, gui, graphical user interf...)

DrawCircle(x0,y0,r,N,theta,holes,idx,ShowShape,opts)

DrawEllipse(x0,y0,r1,r2,N,theta,holes,idx,ShowShape,opts)

DrawFootball(x0,y0,r1,r2,p,N,theta,holes,idx,ShowShape,opts)

image thumbnail

updated 1 year ago

Adjust Plane to Given Normal by Bastian Tietjen

Adjust a more or less planar point cloud so that it fits a given normal vector. (point data, coordinate manipulati..., geometry)

adjustPlanarPointCloud(originalPlane, varargin)

fitNormal(data, show_graph)

transformCartCoord(oldCoordinates, inputA, inputB)

image thumbnail

updated 1 year ago

GridSphere by Kurt

Produces a nearly even grid over the surface of a sphere. (grid, sphere, ball)

AreBadValues(A)

AreEqual(ones, twos)

AreWithin(ones, twos, tolerance)

image thumbnail

updated 1 year ago

transformCartCoord by Bastian Tietjen

Rotate, offset, transform Cartesian coordinates. (geometry, data exploration, coordinate manipulati...)

transformCartCoord(oldCoordinates, inputA, inputB)

minExample.m

image thumbnail

updated 2 years ago

Find Nearest Neighbors on Sphere by Kurt

To be used with the GridSphere function to look up the nearest point to a query on a geodesic grid. (gridsphere, grid, sphere)

...

Archaversine(values)

AreEqual(ones, twos)

image thumbnail

updated 2 years ago

Spherical To Azimuthal Equidistant by Kurt

Convert from spherical coordinates to azimuthal equidistant coordinates. (spatial, sphere, geometry)

AreBadValues(A)

Spherical2AzimuthalEquidistant(latsInDegrees, ...

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

volRevolve by Geoff Olynyk

Calculates the volume of a polygon revolved around the Z-axis. Standalone function. (volume, revolution, geometry)

volRevolve.m

image thumbnail

updated almost 3 years ago

Line-Line Intersection (2d) by Sebastian W

Calculate intersection point of two 2d lines specified with 2 points each (geometry)

linlinintersect(lines)

image thumbnail

updated almost 3 years ago

Alpha shapes by Jonas Lundgren

Alpha shape of 2D/3D point set. (alpha shape, alpha shapes, volume)

alphavol(X,R,fig)

image thumbnail

updated 3 years ago

Calculation of distances from a given set of points to a set of segments by Andrei Bejan

A fully vectorised calculation of distances from a given set of points to a set of segments. (mathematics, optimization, measurement)

[squared_distances_to_segments I t]=csmv(P,R,Q,varargin)

image thumbnail

updated 3 years ago

Points On Line by Ankur Pawar

Linearly spaced points between two point and ,point in Convex Hull test. (points on line, line, 2d)

[inHullPoints,inPointsIndex]=inConvHull(vert,face,testPoi...

points=pointsOnLine(point1,point2,numPoints)

sphericalDodecahedron

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

Reuleaux triangle and friends by Matthew Roughan

A Reuleaux triangle is a shape of constant width based on an equilateral triangle. (geometry, polygon, reuleaux)

[x_out, y_out, x_t, y_t, xi_1, yi_1, xi_2, yi_2, xi_3, yi...

reuleaux_poly(n, N, W)

reuleaux_triangle(x, y, W, theta, N)

image thumbnail

updated 3 years ago

Shortest Distance Between Two Lines in N dimensions by Alexander Brodsky

Function calculates shortest distance between two lines presented by two points for each line. (2d, 3d, intersection)

[dist Pc Qc]=distBW2lines(L1,L2)

image thumbnail

updated 3 years ago

STL to FACET model geometry file converter by Eric Trautmann

This script imports an STL file and writes a .facet file commonly used by Xpatch, etc. (geometry, stl, facet)

stl2facet3(infile,material,varargin)

varargout=import_stl_fast(filename,mode)

image thumbnail

updated 3 years ago

Fast STL import function by Eric Trautmann

Function to import .stl geometry model files into matlab. (geometry, stl, model)

varargout=import_stl_fast(filename,mode)

image thumbnail

updated almost 4 years ago

Geometrical interpretation of the 1-D DFT by Michael Chan

Demonstrates Professor Grigoryan's illustration of geometrical interpretation of the 1-D DFT. (dft, geometry, visualization)

do_Operation1.m

do_Operation2.m

executeMain.m

Contact us