32 for (
auto i = decltype(manifold1.GetPointCount()){0}; i < manifold1.GetPointCount(); ++i)
34 const auto cf = manifold1.GetContactFeature(i);
38 for (
auto j = decltype(manifold2.GetPointCount()){0}; j < manifold2.GetPointCount(); ++j)
40 if (manifold2.GetContactFeature(j) == cf)
49 for (
auto i = decltype(manifold2.GetPointCount()){0}; i < manifold2.GetPointCount(); ++i)
51 const auto cf = manifold2.GetContactFeature(i);
55 for (
auto j = decltype(manifold1.GetPointCount()){0}; j < manifold1.GetPointCount(); ++j)
57 if (manifold1.GetContactFeature(j) == cf)
79 const auto distance0 =
Dot(normal, vIn[0].v) - offset;
80 const auto distance1 =
Dot(normal, vIn[1].v) - offset;
89 vOut.push_back(vIn[0]);
93 vOut.push_back(vIn[1]);
102 const auto interp = distance0 / (distance0 - distance1);
103 const auto vertex = vIn[0].v + (vIn[1].v - vIn[0].v) * interp;