<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi;</p>
    <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>
    </p>
    <p>cheers,<br>
      Gaia<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 21.04.2017 09:46, meneerj-a wrote:<br>
    </div>
    <blockquote
      cite="mid:1409820600.5523814.1492760796956@mail.yahoo.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div>
        <div id="yiv4210628447">
          <div id="yui_3_16_0_ym19_1_1492760698531_6778">
            <div id="yui_3_16_0_ym19_1_1492760698531_6777">
              <div
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27505"><span
id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27633">Hello,</span></div>
              <div
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27615"><span><br>
                </span></div>
              <div
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27631">
                <div id="yui_3_16_0_ym19_1_1492760698531_6783"><span
                    id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27630">I
                    have the impression that this list does not work.</span></div>
                <div id="yui_3_16_0_ym19_1_1492760698531_7885"><span
                    id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27630"><br>
                  </span></div>
                <div id="yui_3_16_0_ym19_1_1492760698531_7886"><span
                    id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27630">Does
                    anyone has tested the blend file ?</span></div>
                <div id="yui_3_16_0_ym19_1_1492760698531_7887"><span
                    id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27630"><br>
                  </span></div>
                <div id="yui_3_16_0_ym19_1_1492760698531_7888"><span
                    id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27630">Thanks<br>
                  </span></div>
              </div>
              <div
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27494"> </div>
              <div class="yiv4210628447signature"
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27495"><br>
              </div>
              <div class="yiv4210628447qtdSeparateBR"
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27496">G.<br>
                <br>
              </div>
            </div>
          </div>
        </div>
        <div class=".yiv4210628447yahoo_quoted"
          id="yui_3_16_0_ym19_1_1492760698531_7925">
          <div id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27501">
            <div id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27500">
              <div dir="ltr"
                id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27499">
                <hr
                  id="yiv4210628447yui_3_16_0_ym19_1_1492702041019_27497">
                <b><span>De :</span></b> Grégory Roger
                <a class="moz-txt-link-rfc2396E" href="mailto:grogerfr@yahoo.fr"><grogerfr@yahoo.fr></a><br>
                <b><span>À :</span></b> <a class="moz-txt-link-rfc2396E" href="mailto:bf-animsys@blender.org">"bf-animsys@blender.org"</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:bf-animsys@blender.org"><bf-animsys@blender.org></a> <br>
                <b id="yui_3_16_0_ym19_1_1492760698531_7960"><span
                    id="yui_3_16_0_ym19_1_1492760698531_7959">Envoyé le
                    :</span></b> Jeudi 20 avril 2017 9h46<br>
                <b><span>Objet :</span></b> Tr : [Bf-animsys] Bone Heat
                Weighting: failed to find solution for one or more bones<br>
              </div>
              <div class="qtdSeparateBR"
                id="yui_3_16_0_ym19_1_1492760698531_7961"><br>
                <br>
              </div>
              <div class="yiv4210628447yqt4538160909"
                id="yiv4210628447yqt94474">
                <div class="yiv4210628447y_msg_container"
                  id="yui_3_16_0_ym19_1_1492760698531_7962"><br>
                  <div id="yiv4210628447">
                    <div class="yiv4210628447yqt9866485747"
                      id="yiv4210628447yqtfd06944">
                      <div id="yui_3_16_0_ym19_1_1492760698531_7965">
                        <div id="yui_3_16_0_ym19_1_1492760698531_7964">
                          <div
                            id="yiv4210628447yui_3_16_0_1_1490688438504_259022"><span></span></div>
                          <div class="yiv4210628447qtdSeparateBR"
                            id="yui_3_16_0_ym19_1_1492760698531_7963"><br>
                            <br>
                          </div>
                          <div class="yiv4210628447yahoo_quoted"
                            id="yiv4210628447yui_3_16_0_1_1490688438504_259028">
                            <div
                              id="yiv4210628447yui_3_16_0_1_1490688438504_259027">
                              <div
                                id="yiv4210628447yui_3_16_0_1_1490688438504_259026">
                                <div
                                  class="yiv4210628447y_msg_container"
                                  id="yiv4210628447yui_3_16_0_1_1490688438504_259035"><br>
                                  <div id="yiv4210628447">
                                    <div
                                      id="yiv4210628447yui_3_16_0_1_1490688438504_262902">
                                      <div
                                        id="yiv4210628447yui_3_16_0_1_1490688438504_262901">
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148275">Hello
                                          Sybren,</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148277"><br>
                                        </div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148291">I
                                          am going to open a bug report,
                                          the blend is about 6Mo, with
                                          only the character and the
                                          basic rig.</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148325"><br>
                                        </div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148344">I
                                          was not clear in point 1, let
                                          me reformulate it :</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148371"><br>
                                        </div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148256">>
                                          1. the parts of the mesh with
                                          poly/vertex problems should be
                                          left<br
                                            id="yiv4210628447yui_3_16_0_1_1490688438504_148631">
                                          > aside, but on the correct
                                          part of the mesh the script
                                          should go on<br
                                            id="yiv4210628447yui_3_16_0_1_1490688438504_148632">
                                          > and assign weights.</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148633"><br>
                                        </div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148425">When
                                          the script has an issue in
                                          solving the assignation of a
                                          weightmap to a specific
                                          bone,it should leave this bone
                                          and jump to the next one so
                                          that the process can go on on
                                          the rest of the mesh which is
                                          correct.</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148667">Then,
                                          there can be an error message
                                          at the end of the process, but
                                          maybe 80-90 % of weightmaps
                                          are created and that's a big
                                          improvement.</div>
                                        <div dir="ltr"
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148737">The
                                          remaining "bad parts " can
                                          later  be manually assigned.<br>
                                        </div>
                                        <br>
                                        <div
                                          id="yiv4210628447yui_3_16_0_1_1490688438504_148257"><br>
                                        </div>
                                        <div
                                          class="yiv4210628447signature"
id="yiv4210628447yui_3_16_0_1_1490688438504_148214">Regards<br>
                                          Grégory <br>
                                        </div>
                                        <div
                                          class="yiv4210628447qtdSeparateBR"
id="yiv4210628447yui_3_16_0_1_1490688438504_148219"><br>
                                          <br>
                                        </div>
                                        <div
                                          class="yiv4210628447yahoo_quoted"
id="yiv4210628447yui_3_16_0_1_1490688438504_148223">
                                          <div
                                            id="yiv4210628447yui_3_16_0_1_1490688438504_148222">
                                            <div
                                              id="yiv4210628447yui_3_16_0_1_1490688438504_148221">
                                              <div dir="ltr"
                                                id="yiv4210628447yui_3_16_0_1_1490688438504_148220">
                                                <hr
                                                  id="yiv4210628447yui_3_16_0_1_1490688438504_148850">
                                                <b
                                                  id="yiv4210628447yui_3_16_0_1_1490688438504_148610"><span
id="yiv4210628447yui_3_16_0_1_1490688438504_148609">De :</span></b>
                                                Sybren A. Stüvel
                                                <a class="moz-txt-link-rfc2396E" href="mailto:sybren@stuvel.eu"><sybren@stuvel.eu></a><br>
                                                <b><span>À :</span></b>
                                                Grégory Roger
                                                <a class="moz-txt-link-rfc2396E" href="mailto:meneerj-a@yahoo.fr"><meneerj-a@yahoo.fr></a>;
                                                Discussion list to
                                                assist animation
                                                developers
                                                <a class="moz-txt-link-rfc2396E" href="mailto:bf-animsys@blender.org"><bf-animsys@blender.org></a>
                                                <br>
                                                <b
                                                  id="yiv4210628447yui_3_16_0_1_1490688438504_148255"><span
id="yiv4210628447yui_3_16_0_1_1490688438504_148254">Envoyé le :</span></b>
                                                Mardi 18 avril 2017
                                                10h14<br>
                                                <b><span>Objet :</span></b>
                                                Re: [Bf-animsys] Bone
                                                Heat Weighting: failed
                                                to find solution for one
                                                or more bones<br>
                                              </div>
                                              <div
                                                class="yiv4210628447yqt7053006676"
id="yiv4210628447yqt63483">
                                                <div
                                                  class="yiv4210628447y_msg_container"
id="yiv4210628447yui_3_16_0_1_1490688438504_148227"><br>
                                                  Hello Grégory,<br>
                                                  <br>
                                                  On Mon, Apr 17, 2017
                                                  at 02:17:15PM +0000,
                                                  Grégory Roger wrote:<br>
                                                  > I can't succeed
                                                  in parenting a
                                                  character to a rig
                                                  with the<br>
                                                  > "automatic
                                                  weights". "Bone Heat
                                                  Weighting: failed to
                                                  find solution<br>
                                                  > for one or more
                                                  bones" is always
                                                  returned.<br>
                                                  <br>
                                                  Can you open a bug
                                                  report at <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    id="yiv4210628447yui_3_16_0_1_1490688438504_148373"
                                                    target="_blank"
                                                    href="https://developer.blender.org/?">https://developer.blender.org/?
                                                  </a>There<br>
                                                  you'll be able to
                                                  attach a blend file
                                                  that shows the issue.
                                                  Please try<br>
                                                  to make the file as
                                                  minimal/small as
                                                  possible to show the
                                                  problem (so<br>
                                                  not with a rig of 100+
                                                  bones).<br>
                                                  <br>
                                                  > with "Automatic
                                                  Weights"  and during
                                                  the process :<br>
                                                  > <br>
                                                  > 1. the parts of
                                                  the mesh with
                                                  poly/vertex problems
                                                  should be left<br>
                                                  > aside, but on the
                                                  correct part of the
                                                  mesh the script should
                                                  go on<br>
                                                  > and assign
                                                  weights.<br>
                                                  <br>
                                                  I don't know what that
                                                  sentence means.<br>
                                                  <br>
                                                  > 2. the parts of
                                                  the mesh with
                                                  poly/vertex problems
                                                  should be shown<br>
                                                  > selected so that
                                                  we know WHERE is the
                                                  problem<br>
                                                  <br>
                                                  That's a good idea.
                                                  <div
                                                    class="yiv4210628447yqt8784354267"
id="yiv4210628447yqtfd78994"><br>
                                                    <br>
                                                    > Blender 2.78a</div>
                                                  <br>
                                                  <br>
                                                  Before sending in a
                                                  bug report, please try
                                                  a more recent version
                                                  of<br>
                                                  Blender (either the
                                                  last release or, even
                                                  better, a daily build
                                                  from<br>
                                                  <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    id="yiv4210628447yui_3_16_0_1_1490688438504_148249"
                                                    target="_blank"
                                                    href="https://builder.blender.org/download/">https://builder.blender.org/download/</a>).<br>
                                                  <br>
                                                  Kind regards,<br>
                                                  -- <br>
                                                  Sybren A. Stüvel<br>
                                                  <br>
                                                  <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    target="_blank"
                                                    href="https://stuvelfoto.nl/">https://stuvelfoto.nl/</a><br>
                                                  <a
                                                    moz-do-not-send="true"
                                                    rel="nofollow"
                                                    shape="rect"
                                                    target="_blank"
                                                    href="https://stuvel.eu/">https://stuvel.eu/</a><br>
                                                  <br>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                  <br>
                                  <br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                  <br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <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>