Split Line Segments (Edges)

split line segments (edges) into smaller ones based on intersections between them

You are now following this Submission

You can start with demo.m in the folder.
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 );

Cite As

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

Acknowledgements

Inspired by: geom2d

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
0.6.1

No update

0.6.0