Newbie MakeClothes problem: stray verts

If you have problems understanding something or getting started, ask here

Moderator: joepal

Newbie MakeClothes problem: stray verts

Postby nyrath » Thu Mar 20, 2014 8:12 pm

The MakeClothes tool does not like my mesh, it complains about stray verts.
screen cap 1: http://imgur.com/3e14C7d
screen cap 2: http://imgur.com/YJY8wT4

The error message says "has stray verts: [405]". According to MakeClothes python script, the 405 is the number of stray verts it found. This seems a bit excessive, since the total mesh only has 542 verts.
I tried selecting one vertex, doing ctrl-LKey to select all linked vertices, then ctrl-IKey to invert the selection, which is the way I usually find unconnected verts. I ended up with no verts at all selected.
I tried doing a menu Select | Loose Geometry, again nothing was selected.

Does anybody have any suggestions on how I can find the stray verts in order to remove them?
nyrath
 
Posts: 10
Joined: Mon Mar 17, 2014 3:48 am

Re: Newbie MakeClothes problem: stray verts

Postby duststorm » Thu Mar 20, 2014 8:43 pm

Perhaps that's not the exact error, and there are other problems. Like not having UVs assigned to the mesh (just guessing here).
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium

Re: Newbie MakeClothes problem: stray verts

Postby nyrath » Thu Mar 20, 2014 10:21 pm

Is there a troubleshooting list I can use to try and figure out what's wrong?
I know people have better things to do than look at my mesh and figure out what silly mistake I did.

According to the 96df930 commit of makeclothes.py, that error is raised in checkNoTriangles()
It make a boolean stray vertext array with one entry for each vertex, initializes them all to true. Then it iterates over all the polygons. For each polygon, the component vertices are set to false in the stray vert array.

If there is at least one true entry in the stray vert array, the error is raised. Interestingly enough, it looks like it also enters edit mode for the clothes mesh and highlights the stray verts. I didn't notice that before.
As it turns out, no vertexes are highlighted on my mesh, at least none that I can see.

I did UV unwrap the mesh before I tried to make it into clothing.

Please give me suggestions of anything else you can think of for me to check. If those fail, I'll start back at square one with some clothing that is trivial, and incrementally change it until the makeclothes routine chokes. I did try a quick-and-dirty test using the tights as the basis, makeclothes turned that into clothing with no problem.
nyrath
 
Posts: 10
Joined: Mon Mar 17, 2014 3:48 am

Re: Newbie MakeClothes problem: stray verts

Postby nyrath » Thu Mar 20, 2014 10:31 pm

Problem solved, I'm an idiot.

For some reason, the stray vert did not appear when I was in local view. It appeared when I turned it off.
The script works fine now. Sorry to make a fuss.
nyrath
 
Posts: 10
Joined: Mon Mar 17, 2014 3:48 am

Re: Newbie MakeClothes problem: stray verts

Postby nyrath » Thu Mar 20, 2014 11:39 pm

Just for the record:

The problem was a single vertex. The vertex was not part of a polygon. But it did have a single edge connecting it to a vertex that was part of a polygon.

So makeclothes.py correctly determined that the vertex was not part of a polygon, and the mesh was unsuitable to be converted.

However, when I selected a vertex on the entire mesh, then selected the linked vertices, of course the offending vertex was selected as well. It was connected to the entire mesh.
And Select | Loose Geometry failed because the offending vertex was not loose geometry. It was connected to the entire mesh.
nyrath
 
Posts: 10
Joined: Mon Mar 17, 2014 3:48 am


Return to Newbies

Who is online

Users browsing this forum: No registered users and 1 guest