image thumbnail

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

GridSphere by Kurt

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

AreBadValues(A)

AreEqual(ones, twos)

AreWithin(ones, twos, tolerance)

image thumbnail

updated 3 months ago

transformCartCoord by Bastian Tietjen

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

transformCartCoord(oldCoordinates, inputA, inputB)

minExample.m

image thumbnail

updated 7 months ago

Oblique Spherical Triangle toolbox by Rody Oldenhuis

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

aaa(A, B, C)

aaad(A, B, C)

aas(A, B, a)

image thumbnail

updated 7 months ago

geom3d by David Legland

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

demoDrawTubularMesh

demoGeom3d

demoInertiaEllipsoid

image thumbnail

updated 1 year 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. (nearest neighbor, gridsphere, sphere)

...

Archaversine(values)

AreEqual(ones, twos)

image thumbnail

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

Alpha shapes by Jonas Lundgren

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

alphavol(X,R,fig)

image thumbnail

updated 1 year ago

geom2d by David Legland

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

angle2Points(varargin)

angle3Points(varargin)

angleAbsDiff(angle1, angle2)

image thumbnail

updated 1 year 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 1 year 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,testPoint...

points=pointsOnLine(point1,point2,numPoints)

sphericalDodecahedron

image thumbnail

updated almost 2 years ago

Shortest distance between two line segments by Nick Gravish

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

DistBetween2Segment(p1, p2, p3, p4)

image thumbnail

updated almost 2 years ago

STL File Reader by Eric Johnson

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

3D Model Demo

stlread(file)

image thumbnail

updated 2 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_3...

reuleaux_poly(n, N, W)

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

image thumbnail

updated 2 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, plot, intersection)

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

image thumbnail

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

Fast STL import function by Eric Trautmann

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

varargout=import_stl_fast(filename,mode)

image thumbnail

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

Binary STL file reader by Francis Esmonde-White

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

stlread(filename, verbose)

image thumbnail

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

Animate a Wind Farm with MATLAB by Saurabh Mahapatra

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

wind_turbine_code.m

image thumbnail

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

2D Polygon edges intersection by Bruno Luong

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

isintersect(P1, P2)

poly2poly(P1, P2)

image thumbnail

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

image thumbnail

updated 3 years ago

ashape: a pedestrian alpha shape extractor by us

extracts 2d alpha shapes from a set of x/y data points (alpha shape, segmentation, geometry)

fh=aslib(varargin)

p=ashape(varargin)

image thumbnail

updated 3 years ago

Attractor by Ankur Pawar

Quadratic attractor,Clifford attractor,Peter De Jong generated using histogram method. (strange attractor, attractor, ifs)

clifford.m

peterdejong2.m

peterdejong4.m

image thumbnail

updated 3 years ago

Intersection of three spheres by Hrishi Shah

Find intersection of three spheres given their centers and radii (intersection, spheres, geometry)

handle=plotsphere(X,r,color)

result=interx(X1,X2,X3,r1,r2,r3,pos)

test.m

image thumbnail

updated 3 years ago

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

Solves any Lambert-problem robustly. Can be compiled to increase efficiency. (astrodynamics, lambert, trajectory optimizati...)

lambert(r1vec, r2vec, tf, m, muC)%#eml

image thumbnail

updated 3 years ago

Distance from points to an ellipse by Matthew Arthington

This function can calculate the geometric distance from one or more points to an ellipse in 2D. (mathematics, measurement, geometry)

distancePointToEllipse(X,Y,ra,rb,xc,yc,phi,accuracy)

image thumbnail

updated 3 years 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)

distanceEllipseEllipse(a,b,c,u,v)

image thumbnail

updated 3 years ago

Cell Geo Measure by Zachary

Gets points in 3d space from cells, and organelles. (geometry, organelle)

CellMeasure(varargin)

seg3d_threshold(xreg,yreg,zsize_int, stk_region, XYm, XZm, ...

tr3(m,x,y,z)

image thumbnail

updated 3 years ago

Transform a 3d volume by using an affine transformation matrix by Martijn Steenwijk

This function transforms a volume by using an affine transformation matrix. (3d, volume, affine)

affine3d(old_im, M, range_x, range_y, range_z, method)

image thumbnail

updated almost 4 years ago

Area and volume properties by Howard Wilson

Area and volume properties for shapes defined by piecewise linear and spline boundaries (geometry, stress analysiss, structural dynamics)

[Area,Ax,Ay,Ixx,Iyy,Pxy]=splnpoly(type,xd,yd,doplot)

[Area,xcent,ycent,Axx,Ayy,Axy]=areaprop(pdat,sdat,titl,dopl...

[Area,xcent,ycent,Ixx,Iyy,Ixy]=ellipsecheck(n)

image thumbnail

updated almost 4 years ago

"Center": Calculates and plots centers of a triangle by Gustavo Morales

"Center": Calculates and plots the barycenter, incenter, circumcenter and orthocenter of a triangle (geometry, mathematics, physics)

center(Pa,Pb,Pc,Type)

image thumbnail

updated almost 4 years ago

Cubed sphere by Bruno Luong

Generate a cubed-sphere geometry (cubed sphere, geometry, earth simulation)

cubedsphere(n, prjtype)

earthdemo(maptype)

plotcubedsphere.m

image thumbnail

updated 4 years ago

Read DXF File Data by Sebastian

Read geometry and properties of AutoCad's Entities. (data exploration, dxf, geometry)

f_LectDxf(nomArch)

image thumbnail

updated 4 years ago

Compute 3D rotation matrix by Stanley

Simplifies computation of 3D rotation matrices. (3d, geometry)

rotationmat3D(r,Axis)

image thumbnail

updated 4 years ago

Accurate polygon extension by Krispijn Scholte

Enlarges polygon by a specified range. Also generates internal polygons caused by intersections. (computational geometr..., polygon, enlarge)

extendPoly(Polygon,varargin)

image thumbnail

updated 4 years ago

inside triangle by Nassim Khaled

inside_triangle is used to check if a point P is inside the triangle P1P2P3 or not. (triangle, plane, inside)

True=inside_triangle(P,P1,P2,P3);

image thumbnail

updated 4 years ago

morphimage by Dima Pröfrock

Function to morph grayscale images. (geometric transformat..., video, morphing warping)

morphimage(orig,morphfield)

Contact us