Search in sources :

Example 1 with CollidableDynamicComponent

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));
        }
    }
}
Also used : DynamicComponent(artisynth.core.mechmodels.DynamicComponent) CollidableDynamicComponent(artisynth.core.mechmodels.CollidableDynamicComponent) CollidableDynamicComponent(artisynth.core.mechmodels.CollidableDynamicComponent) ContactMaster(artisynth.core.mechmodels.ContactMaster) ContactPoint(artisynth.core.mechmodels.ContactPoint) Point(artisynth.core.mechmodels.Point)

Aggregations

CollidableDynamicComponent (artisynth.core.mechmodels.CollidableDynamicComponent)1 ContactMaster (artisynth.core.mechmodels.ContactMaster)1 ContactPoint (artisynth.core.mechmodels.ContactPoint)1 DynamicComponent (artisynth.core.mechmodels.DynamicComponent)1 Point (artisynth.core.mechmodels.Point)1