Delete stranded vertices?

Is there a way to delete vertices that are only on one edge. I am manually deleting the stranded vertices by clicking backspace... its very time consuming.

Here is an example. I need to delete the middle vertex *

Current
*------------*
| |
| |
*-----*------*
| |
| |
*------------*

Clean version
*------------*
| |
| |
*------------*
| |
| |
*------------*

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jininjin's picture

Thanks everyone. Miauu your

Thanks everyone. Miauu your right it could mess up the geometry of the edges. Vertex Cleaner looks promising. I will try all these to find what works best.

obaida's picture

There is

there is already a script for doing this by "shiva"
http://www.scriptspot.com/3ds-max/scripts/vertex-cleaner

miauu's picture

There is a problem in the way

There is a problem in the way that you want to delete those verts. Branko gives you what you want, but what will happens in situations like this

       e1

v1*--------*v2

   |                |

   |                |   e2

   *-------------*-------*v3

   |                 |         |

   |                 |         |

v4*----------*-------*v5

In this case v1,v2,v3,v4,v5 are the verts that have only 2 edges connected to them and the script will delete those verts, which will destroy your geometry. The script can be extended and can check the angle between e1 and e2 and if that angle is less than 10deg(let say that you want to delete only the verts from the straight edges) the the script will delete v2, If the angle between e1 and e2 is grater than 10 deg then the v2 will not be deleted.

Ruramuq's picture

--

Also, there is the 'Turn To poly' modifier, with, 'Remove Mid-edge Vertices'.

barigazy's picture

...

this works on editablepoly objects

fn remove2EdgeVerts obj =
(	
	obj.selectedverts = (for i in 1 to obj.numverts where obj.GetVertexEdgeCount i == 2 collect i)
	obj.remove selLevel:#Vertex
)
remove2EdgeVerts $

barigazy

jininjin's picture

looks like the formatting

looks like the formatting wrecked my example. I will post a screen grab if it isn't clear...

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.