Irregular Polygon
(1) CubicBezier1.m : Evaluates Cubic Bezier Curve for given four Control Points and interval.(2) PlotBezier1.m : Plots Bezier Curve, Control Points, Control Polygon(3) TestCircleApproxByCubicBezier.m : Test Program. Pass Control Points that approximate unit radius circle using cubic Beizer...
Platforms: Matlab
License: Freeware | Size: 122.88 KB | Download (47): Approximation of Circle Using Cubic Bezier Curve Download |
This is Brand new so please advise-me if problems occurs.Here you can find an m-file with three different algorithms for inpolygon test.Depending on the input data, the one that is extimate to be the best will be chosen.This version do not support the onpolygon output so tollerance is not...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (41): IN POLYGON TEST FOR CONVEX POLYGON Download |
Let d < N be a positive integer and define p = N/d. Let y_{1} be a point on the unit circle. Let R be clockwise rotation by the angle t = 2*pi/p. The generalized regular polygon {p} is given by the points y_{i+1} = R * y_{i}, and edges between points i and i+1.Example:polygon(9, 4, 1);
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): Regular Polygons Download |
TDFig is an interactive matlab GUI. It displays a 3D objects in the traditional 4-view window (top, front, right and camera).It also allows users to grasp these objects and move them anywhere in the 3D space.Just run: TDFigand it will generate 4 spheres for demo.Grasp and move the spheres in...
Platforms: Matlab
License: Freeware | Size: 81.92 KB | Download (44): Move a 3D object with mouse in a traditional 4-view window Download |
In large scale mapping projects with numerous satellite images, it is useful to have a vector file depicting the boundary of the images. This script when run from the folder containing the images, it automatically detects the geotiffs and extracts their image area boundary and constructs a...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (49): GeoTiff PathRow Download |
discintersect: to caculate the intsection between 2 discpolydiscint: to caculate the intsection between disc and polygonplotdisc: to plot the disc in 3D
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (39): Caculate the intsection between 2 discs or disc with polygon Download |
ReadImageJROI - FUNCTION Read an ImageJ ROI into a MATLAB structureUsage:[sROI] = ReadImageJROI(strFilename)[cvsROIs] = ReadImageJROI(cstrFilenames)[cvsROIs] = ReadImageJROI(strROIArchiveFilename)This function reads the ImageJ binary ROI file format.'strFilename' is the full path to a '.roi'...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Import ImageJ ROIs Download |
This functions goal is to find a polygon which enclosures a user supplied mask. It's a kind of a complementary of Matlab poly2mask function. The difference is that all contour points are returned- without missing points for linearly related points. In order to get a 100% complementary of...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): mask2poly Download |
This function PATCHT, will show a triangulated mesh like Matlab function Patch but then with a texture. patcht(FF,VV,TF,VT,I,Options); inputs, FF : Face list 3 x N with vertex indices VV : Vertices 3 x M TF : Texture list 3 x N with texture vertex indices VT : Texture Coordinates s 2 x K, range...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 184.32 KB | Download (40): Texture Patch Download |
calculates surface area A and its standard uncertainty uA for any arbitrary polygon in a plane given by coordinates x and y and their respective standard uncertainties ux and uy. The inputs are assumed to be VECTORS, x, ux, y and uy all should have the same size. The uncertainties are assumed to...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (47): determine surface area and uncertainty from points in a plane Download |
A function which gives the area of a 3D planar polygon which does not lie in the x-y plane.AREA3D(X,Y,Z) calculates the area of a polygon in space formed by vertices with coordinate vectors X,Y and Z. If the coordinates of vertex v_i are x_i, i and z_i twice the area of a polygon is given by:2...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (42): area3D Download |
When interpolating on a given data set, convhull is used to set the boundaries of the interpolation area. Because convhull only minimizes the outline length, there might be interpolation lines which are unwanted (see figure).hullfit tries to minimze the polygon area instead resulting in a hull...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 20.48 KB | Download (43): hullfit Download |
MESH_LAPLACIAN: Laplacian of irregular triangular meshUseage: [lap,edge] = mesh_laplacian(vertex,face)Returns 'lap', the Laplacian (2nd spatial derivative) of an irregular triangular mesh, and 'edge', the linear distances between vertices of 'face'. 'lap' and 'edge' are square,...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Mesh Laplacian Download |
Accepts a list of x and y coordinates. First, we find the smallest circumscribing polygon from this list (convhull). Finally, we use this polygon's coordinates to find the smallest circumscribing circle. We find the circle by minimizing the distance of the circle center to the polygon's...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): circum circle Download |
2-D Propagation code similar to parabolic wave codes but with complete boundary conditions for irregular surfaces. Induced boundary surface currents are retained. Documentation and examples are provided. Basic code structure can be extended to fully 3-Dimensional environments.
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 296.96 KB | Download (46): 2-D Propagation Code for Bounded Media Download |
This function tries to improve the slow Matlab INPOLYGON function.There are few other fast codes on FEX (e.g., by Darren Engwirda). After exploring many different ways, I come to the conclusion that Darren Engwirda's approach is close to optimal. So here you'll find a general method that share...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): 2D polygon interior detection Download |
Read and Write Wavefront OBJ geometry and MTL files.A Wavefront Geometry Object file is supported by many 3D programs, it looks like:v 0.000000 2.000000 0.000000v 0.000000 0.000000 0.000000v 2.000000 0.000000 0.000000v 2.000000 2.000000 0.000000% Vertices Coordinates 4f 1 2 3 4% Faces 1The...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 204.8 KB | Download (53): Wavefront OBJ toolbox Download |
Find the intersection points of the edges of two 2D polygons, a simple function made to follow up a Newsgroup discussion
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (45): 2D Polygon edges intersection Download |
This function smooths a triangulated Mesh / Patch.Supports accurate curvature flow smoothing. Which smooths in the direction of the normal keeping the edge ratio's the same.Also supports Laplacian smoothing with inverse vertice-distance based umbrella weights, making the edge lengths more...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (40): Smooth Triangulated Mesh Download |
This is a mex wrapper for Angus Johnson's Clipper library: http://www.angusj.com/delphi/clipper.php, based on Sebastian HdoTAlz's mex wrapper for the GPC library. This library has some speed advantages over GPC, but the primary addition is the ability to offset polygons. In order to use this, you...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (44): Polygon Clipping and Offsetting Download |