File Exchange

image thumbnail

Split Line Segments (Edges)

version 0.6.0 (10.8 KB) by Jiexian Ma
split line segments (edges) into smaller ones based on intersections between them

3 Downloads

Updated 03 Jan 2021

View License

You can start with demo.m in the folder.

If you have any questions or suggestions, feel free to send me an email.
mjx0799@gmail.com, Jan 2021.

Cite As

Jiexian Ma (2021). Split Line Segments (Edges) (https://www.mathworks.com/matlabcentral/fileexchange/85123-split-line-segments-edges), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Jiexian Ma

Those duplicated line segments in the output of function splitEdges can be removed by the following code:
unique_edges = uniquetol(edges, 10^-5, 'ByRows', true );

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

Inspired by: geom2d

Community Treasure Hunt

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

Start Hunting!