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

Schwarz-Christoffel Toolbox by Toby Driscoll

Computes conformal maps to polygons, allowing easy solution of Laplace's equation. (conformal, mapping, laplaces equation)

image thumbnail

updated 3 months ago

A suite of minimal bounding objects by John D'Errico

Suite of tools to compute minimal bounding circles, rectangles, triangles, spheres, incircles, etc. (miminum, bound, bounding)

incircle(x,y)

insphere(xyz,tri)

minboundcircle(x,y,hullflag)

image thumbnail

updated 4 months ago

inpoly mex file by Sebastien PARIS

Find points inside or on the border of a polygon (inpoly, points, inside)

test_inpoly

mexme_inpoly.m

image thumbnail

updated 4 months ago

mpoly2mask - converts multiple polygons to a mask by Sven

Converts an object with multiple boundary contours to a logical mask (poly2mask, bwboundaries, polygon)

mpoly2mask(XY, varargin)

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 6 months ago

Dicom Operator - EsmeProcess by Jun Li

EsmeProcess functions dicom image operation including viewing, drawing, writing and statistic. (dicom, mask, header)

EsmeProcess Tutorial

[meanGL1, stdGL1, meanGL2, stdGL2, ...

addmenuitems.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

Polygon simplification by Peter Bone

Simplifies a closed polygon by reducing the number of vertices to a specified number (polygon, simplification, reduction)

reduce_poly(poly, num)

reduce_poly_demo.m

image thumbnail

updated 8 months ago

Representing Polyhedral Convex Hulls by Vertices or (In)Equalities by Matt J

Express bounded polyhedron via equalities/inequalities or vertices. (vert2con, polyhedron, polytope)

[A,b,Aeq,beq]=vert2lcon(V,tol)

[V,nr,nre]=lcon2vert(A,b,Aeq,beq,TOL,checkbounds)

[varargout]=qlcon2vert(x0,varargin)

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

distributePointsOnPolygon by Wouter

This function distributes polygon points evenly across the polygon. (polygon, distribution, points)

distributePointsOnPolygon( varargin )

image thumbnail

updated 1 year ago

Grid of points within a polygon by Sulimon Sattari

This function generates an array of points that lie within a given polygon (polygon, points, point)

polygrid( xv, yv, ppa)

image thumbnail

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

Blended 3D poly2mask by Sven

Creates a 3D mask "lofted" or "tweened" (blended smoothly) from a set of planar polygons. (poly2mask, 3d mask, polygon)

blendedPolymask(curves, xVec, yVec, zVec)

image thumbnail

updated 2 years ago

Polygon Clipping and Offsetting by Emmett

Mex wrapper for a fast, robust C++ library to clip and offset arbitrary polygons. (polygon, offset, clip)

testclipper.m

image thumbnail

updated almost 3 years ago

Fast Parsing of Line Segments in a BW Mask by Jonathan Sullivan

Quickly determines the portions of a line/curve that are inside and outside of a binary mask. (polygon, mask2poly, poly2mask)

lineinmask(varargin)

image thumbnail

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

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

Plot to Bitmap by Dirk-Jan Kroon

Plot lines (and text) directly into a bitmap, including filled polygons. (bitmap, image, text)

I=bitmapplot(x,y,Ibackground,options)

I=bitmaptext(lines,I,pos,options)

image thumbnail

updated 3 years ago

Minimum distance between two polygons by sjye

Computes the minimum distance between two different shape polygons. (Vertex-vertex case) (polygon, minimum, distance)

min_dist_btwn_two_polygons(P1,P2)

image thumbnail

updated almost 4 years ago

bufferm2 by Kelly Kearney

Creates a buffer zone around or inside a polygon or polygons (buffer zone, polygon, bufferm)

bufferm2(varargin)

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

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

Contour2Area by Per Sundqvist

Gives the area of polygons from the matlab function C=contour(x,y,z) and their centroids. (contourc, inpolygon, polyarea)

Contour2Area.m

image thumbnail

updated 5 years ago

Fast Quadrilateral Intersection by Russell

Computes the intersecting area of two arbitrary quadrilaterals. (quadrilateral, intersection, polygon)

fastRectInt(r1, r2)

polyLong2PolyShort(polyLong)

image thumbnail

updated 5 years ago

2D Cubic Beizer Curve by Dr. Murtaza Khan

Evaluate and plot 2D cubic bezier curve for given four control points. (approximation, interpolation, cubic)

Funct_Bezier(Px,Py,n)

TestCubicBezier.m

image thumbnail

updated 5 years ago

Polygon_Intersection by Guillaume JACQUENOT

This function computes n-times intersection region of shapes collection (specialized, plotting, intersection)

Polygons_intersection.m

Polygons_intersection_Compute_area(S)

Polygons_intersection_Create_combination(M)

image thumbnail

updated 5 years ago

Polytopes by Bill McKeeman

Display regular and semi regular geometric figures. (gallery, ndimensional, polygon)

N-D Geometrical Figures

angles(e)

buckytumble

image thumbnail

updated 5 years ago

interppolygon by Jean-Yves Tinevez

INTERPPOLYGON Interpolates a polygon. (interpolation, polygon)

interppolygon(X,N,method)

image thumbnail

updated 5 years ago

Accurate polygon extension by Krispijn Scholte

Enlarges polygon by a specified range. Also generates internal polygons caused by intersections. (polygon, extend, extension)

extendPoly(Polygon,varargin)

image thumbnail

updated 5 years ago

Minimum distance between two polygons by Guillaume JACQUENOT

This function computes the minimum euclidean distance between two polygons P1 & P2. (polygon, distance, minimum)

curveintersect.m

min_dist_between_two_polygons.m

image thumbnail

updated 5 years ago

polygeom.m by H.J. Sommer

POLYGEOM computes area, centroid location, area moments of inertia and perimeter of closed polygons. (area, centroid location, area moments)

polygeom( x, y )

test_polygeom.m

image thumbnail

updated almost 6 years ago

Image Region Labeling Software by Sinan Kalkan

A Matlab-software with a user-friendly GUI to select arbitrary polygon shapes and label them. (image processing, gui, polygon)

label_gui3(labels)

image thumbnail

updated 6 years ago

Fast InPolygon detection MEX by Guillaume JACQUENOT

Fast detection points inside a polygonal region (inpolygon, mex, polygon)

InPolygon_Test.m

image thumbnail

updated 6 years ago

shape recognition(many shape) by Trieu Nguyen Ta

with this you can recognize many shape;but only symetrical shape (application, recognition, shape)

T=sobel(I)

chuongtrinhnhandang(varargin)

nhanchap(X,H)

image thumbnail

updated 6 years ago

Distance from a point to polygon by Alejandro Weinstein

Calculate the distance from a point to 2-D polygon, and the point on the polygon closest to the poin (polygon, point, distance)

p_poly_dist(x, y, xv, yv)

image thumbnail

updated 6 years ago

Fast points-in-polygon test by Darren Engwirda

Fast test to determine points located inside general polygon regions. Should be significantly faster (points inside polygon, image processing, inpolygon)

inpoly(p,node,edge,TOL)

lake

polydemo

image thumbnail

updated almost 7 years ago

Contour edition by Vincent Garcia

Edit an object contour using mouse interactions (contour edition, point, square)

ctr_editContour(img,o_ctrType,o_ctr)

test()

image thumbnail

updated almost 7 years ago

Triangle Area and Angles v1.3 by Dirk-Jan Kroon

Calculates the area and angles of any triangle described by 2D,3D..nD points (triangle, polygon, area)

[angles]=triangle_angles(P,format)

[area]=triangle_area(P,method)

image thumbnail

updated 7 years ago

areaintersection.m by paul

Approximates the area of intersection of two polygons (approximation, interpolation, polygon)

[area]=areaintersection(set1, set2, resolution)

image thumbnail

updated 7 years ago

Curve Intersect 2 by Sebastian Hölz

Finds the intersection points between two arbitrary polygons. (intersection, line, curve)

curveintersect.m

image thumbnail

updated 7 years ago

Finds convex polygon defined by random 2D points by christian delusier

Finds convex polygon defined by random 2D points (polygon, convex, finds)

Return_points_polyg_direct.m

image thumbnail

updated almost 8 years ago

Polygon Clipper by Sebastian Hölz

Given two arbitrary polygons, the routine calculates the resulting polygon ... (linear algebra, polygon, difference)

PolygonClip_example

image thumbnail

updated 8 years ago

MEX_SHAPE by John Evans

Reads in common ESRI shapefile formats. (data import, data export, shapefile)

mex_shape ( shapefile )

mex_shape ( shapefile )

shape_get ( shapefile )

image thumbnail

updated 8 years ago

polyorient by M MA

Orientation of polygon (polygon, orientation, 2d)

polyorient(x,y)

image thumbnail

updated 8 years ago

fillout by M MA

Fill outside a 2-D polygon (specialized, plotting, fill)

fillout.m

image thumbnail

updated almost 9 years ago

Slicing 3-D data: Obtaining Coordinates of Contour Polygons by Michael Kleder

For MATLAB 7 or later. Returns actual coordinates of polygons representing contour lines .... (data exploration, contour, coordinate)

getcon(X,Y,Z,v)

image thumbnail

updated 9 years ago

VERT2CON - vertices to constraints by Michael Kleder

Create inequality constraints to bound the convex hull of the given points. (optimization, polygon, polyhedron)

vert2con(V)

image thumbnail

updated 9 years ago

CON2VERT - constraints to vertices by Michael Kleder

Convert convex constraint inequalities into a set of vertices; i.e., polygon "vertex enumeration." (optimization, vertex, enumeration)

con2vert(A,b)

Contact us