<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi;</p>
    This issue happens often when a mesh is made of 2 or more
    unconnected mesh parts in the same mesh object. For example when you
    create a set of teeth for a character but modeled them all in one
    object. Or mesh based hair strains, things like that. The weighting
    algorithm then can not decide how to distribute the weights for some
    of the vertices. <br>
    <br>
    The workaround is as follows:<br>
    <br>
    1.) separate the Mesh object into parts ('p' in edit mode)  where
    each part contains one of the partial meshes<br>
    2.) Do the automatic weight from bones for all parts<br>
    3.) Join the parts back into one object<br>
    <br>
    It should not be too complicated to improve the weighting operator:
    The operator could run the weight algorithm for each unconnected
    mesh part separately. Then the user would not need to bother with
    separating the parts and later rejoining them.<br>
    <br>
    Regarding the information about which vertices are affected: I have
    looked at this a while back, but i could not figure out how to get
    the list of affected vertices from the weighting functions. I looked
    into this down to the function <br>
    <br>
    bool EIG_linear_solver_solve()<br>
    <br>
    But this function only returns either success or fail for an entire
    mesh object. And i am not sure how i can get the list of affected
    verts from that function. Maybe someone can give a hint or two here
    ? A nice way to show the affected verts would be to automatically
    select them. So when the user opens EDIT mode the affected verts
    shine in yellow.<br>
    <br>
    cheers,<br>
    Gaia<br>
    <br>
    <div class="moz-cite-prefix">On 18.04.2017 10:14, Sybren A. Stüvel
      wrote:<br>
    </div>
    <blockquote cite="mid:20170418081430.GA14784@stuvel.eu" type="cite">
      <pre wrap="">Hello Grégory,

On Mon, Apr 17, 2017 at 02:17:15PM +0000, Grégory Roger wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I can't succeed in parenting a character to a rig with the
"automatic weights". "Bone Heat Weighting: failed to find solution
for one or more bones" is always returned.
</pre>
      </blockquote>
      <pre wrap="">
Can you open a bug report at <a class="moz-txt-link-freetext" href="https://developer.blender.org/">https://developer.blender.org/</a>? There
you'll be able to attach a blend file that shows the issue. Please try
to make the file as minimal/small as possible to show the problem (so
not with a rig of 100+ bones).

</pre>
      <blockquote type="cite">
        <pre wrap="">with "Automatic Weights"  and during the process :

1. the parts of the mesh with poly/vertex problems should be left
aside, but on the correct part of the mesh the script should go on
and assign weights.
</pre>
      </blockquote>
      <pre wrap="">
I don't know what that sentence means.

</pre>
      <blockquote type="cite">
        <pre wrap="">2. the parts of the mesh with poly/vertex problems should be shown
selected so that we know WHERE is the problem
</pre>
      </blockquote>
      <pre wrap="">
That's a good idea.

</pre>
      <blockquote type="cite">
        <pre wrap="">Blender 2.78a
</pre>
      </blockquote>
      <pre wrap="">
Before sending in a bug report, please try a more recent version of
Blender (either the last release or, even better, a daily build from
<a class="moz-txt-link-freetext" href="https://builder.blender.org/download/">https://builder.blender.org/download/</a>).

Kind regards,
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Bf-animsys mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-animsys@blender.org">Bf-animsys@blender.org</a>
<a class="moz-txt-link-freetext" href="https://lists.blender.org/mailman/listinfo/bf-animsys">https://lists.blender.org/mailman/listinfo/bf-animsys</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>