use of artisynth.core.mechmodels.CollidableDynamicComponent in project artisynth_core by artisynth.
the class SkinMeshBody method getVertexMasters.
public void getVertexMasters(List<ContactMaster> mlist, Vertex3d vtx) {
PointSkinAttachment pa = getAttachment(vtx.getIndex());
for (int j = 0; j < pa.numConnections(); j++) {
DynamicComponent m = pa.getMaster(j);
// with a master component (i.e., numMasters <= numConnections
if (m instanceof CollidableDynamicComponent) {
double wm = pa.getWeight(j);
// System.out.println (
// "adding for "+ComponentUtils.getPathName(m)+" w=" + w*wm);
mlist.add(new ContactMaster((CollidableDynamicComponent) m, wm));
}
}
}
Aggregations