public static Map<Integer, List<Float>> buildPointMap(Spatial model) {
        Map<Integer, List<Float>> map = new HashMap<>();

        SkeletonControl skeletonCtrl = model.getControl(SkeletonControl.class);
        Mesh[] targetMeshes = skeletonCtrl.getTargets();
        for (Mesh mesh : targetMeshes) {
            buildPointMapForMesh(mesh, map);
        }

        return map;
    }
Build a map of mesh vertices in a subtree of the scene graph.

@param model the root of the subtree (may be null)
@return a new map (not null)
jme3-jbullet/src/main/java/com/jme3/bullet/control/ragdoll/RagdollUtils.java