.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete vertex in polyline

1 REPLY 1
Reply
Message 1 of 2
Anonymous
676 Views, 1 Reply

Delete vertex in polyline

Hi All,

Everybody can help me delete some vertex in this polyline.

hhh1.png

Example as: i have 3 vertex (0,1,2)  and you can see vertex 1 stay between vertex  0 and 2. Now, i want to delete this vertex how can do that. Similarly, i want to delete some vertexs 3,5,8.  Thanks for your help. (Note: this image only illustrate).

And this my file cad. Drawing4.dwg

 

1 REPLY 1
Message 2 of 2
SENL1362
in reply to: Anonymous

You could program the following criteria:
0. I=0: LOOP
1. IS vertex i+1 on straight line segment (i) .. (i+2)
2. THEN RemoveVertexAt (i+1)
3. NEXT i=i+2


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost