File Exchange

image thumbnail

Convert Ellipses to Polygons

version 1.0.0 (1.48 KB) by Ayad Al-Rumaithi
Discretize ellipses to polygons with nearly equal segments lengths

4 Downloads

Updated 17 May 2019

View License

Discretize ellipses to polygons with nearly equal segments lengths

function Polygons=Ellipses2Polygons(Ellipses,L)

Input
Ellipses: (NEllipses*5) array. each column represent:
(:,1): radius of ellipses at direction 1
(:,2): radius of ellipses at direction 2
(:,3): x-cooridante of centroid
(:,4): y-coordinate of centroid
(:,5): Inclination angle
L: Approximate segement length of the polygons

Output
Polygons: a cell array where Polygons{i} is (n*2) polygons vertices array of the ith ellipse

Cite As

Ayad Al-Rumaithi (2021). Convert Ellipses to Polygons (https://www.mathworks.com/matlabcentral/fileexchange/71572-convert-ellipses-to-polygons), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Márton Petö

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!