image thumbnail

updated 1 month ago

fourierShapeDescriptor.zip by Weicheng Kuo

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

B=fourierShapeDescriptor(A,r)

image thumbnail

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

geom3d by David Legland

Library to handle 3D geometric primitives: create, intersect, display, and make basic computations (geometry, 3d, geometric computing)

demoDrawTubularMesh

demoGeom3d

demoInertiaEllipsoid

image thumbnail

updated 3 months ago

Oblique Spherical Triangle toolbox by Rody Oldenhuis

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

image thumbnail

updated 3 months ago

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

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

image thumbnail

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

geom2d by David Legland

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

InterX(L1,varargin)

angle2Points(varargin)

angle3Points(varargin)

image thumbnail

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

Cylinder_cal by Delvin

Basic calculation of cylinder (geometry)

Cylinder_cal.m

image thumbnail

updated 6 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 7 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 8 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 8 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 10 months ago

Hausdorff Convex Set Distance by Richard Katzwer

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

Hausdorff

image thumbnail

updated 10 months 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 11 months 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 2 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 2 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 2 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 almost 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 3 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

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 almost 4 years ago

Forming ray lines for plots by Michael Chan

The objective is to construct different line beams. (beam, plot, ray)

deg2rad( inDegrees )

rayLinesScheme_fan (numberOfLines, ...

rayLinesScheme_parallel (numberOfLines, ...

image thumbnail

updated almost 4 years ago

quadforms by Giampiero Campa

Convert quadratics from Homogeneous to Center form and back. (mathematics, geometry, algebra)

E=c2h(Q,c)

[Q,c]=h2c(E)

image thumbnail

updated almost 4 years ago

Distance between a point and a triangle in 3D by Gwendolyn Fischer

pointTriangleDistance calculates the distance between a point and a triangle in 3D. (computational geometr..., graphics, geometry)

pointTriangleDistance(TRI,P)

image thumbnail

updated 4 years ago

Animate a Wind Farm with MATLAB by Simulink Dude

A VRML model of a wind turbine, animated with MATLAB and Simulink 3D Animation. (wind, farm, turbine)

wind_turbine_code.m

image thumbnail

updated 4 years ago

2D polygon interior detection by Bruno Luong

Detect a whereas a point is interior or exterior to a 2D polygon (inpolygon, polygon, mesh)

benchinpoly(xv, yv, ntest)

insidepoly(varargin)

insidepoly_dblengine

image thumbnail

updated 4 years ago

Euclidian projection on ellipsoid and conic by Bruno Luong

Projecting a point on ellipsoid or conic in n-dimensional space (geometry, ellipsoid, projection)

ConicPrj(P, A, b, c, parabolatol)

EllAlg2Geo(A, b, c)

EllGeo2Alg(radii, U, x0)

image thumbnail

updated 4 years ago

2D Polygon edges intersection by Bruno Luong

Find the intersection points of the edges of two 2D polygons (geometry, polygon, intersection)

isintersect(P1, P2)

poly2poly(P1, P2)

image thumbnail

updated 4 years ago

Ackermann steering(Car Auto parking) by Mohamed Khaled

Car parking simulation (ackermann, steering, car autoparking)

MyRect2(x,y,a,b,seta)

[xa1 xb1 xb2 xa2 ya1 yb1 yb2 ya2]=MyRect3(x,y,a,b,seta)

CarModel.m

Contact us