- Get coordinates of the midpoints in all existing lines.
- Add the midpoints to your original points and you have the new points array
- Create two lines from each of the original lines, using the new midpoints.
How to divide many lines ?
4 views (last 30 days)
Hello, need little help with one problem.
I have code which making a construction and I need to divide every line.
nodes=[0 0 %X-coord, Y-coord
Nnodes = size(nodes,1);
lines = [1 2 %1.node, 2.node
5 6 ];
Nlines = size(Nlines,1);
and then of course I also need the correct matrices with all nodes and lines
hope, you will help me.
Jiri Hajek on 30 Jan 2023
Hi, since your oibjective is to split all existing lines, its sufficient to: