public SoftShape( int[][] triangleIndex, Vector3d[] shapePoint, ConstraintIndex[] softJoint, double mass, double decompositionParam, double restoreCoefficient, double springCoefficient) { TriangleMesh[] triangleMeshes = CommonUtilities.GetTriangleMeshes(triangleIndex); softShape = new SimSoftShape(triangleMeshes, shapePoint, softJoint, mass, decompositionParam, restoreCoefficient, springCoefficient); }
public SoftShape( int[][] triangleIndex, Vector3d[] shapePoint, Vector3d startPosition, double mass, double decompositionParam, double dampingCoefficient, double springCoefficient) { TriangleMesh[] triangleMeshes = CommonUtilities.GetTriangleMeshes(triangleIndex); softShape = new SimSoftShape( triangleMeshes, shapePoint, startPosition, mass, decompositionParam, dampingCoefficient, springCoefficient); }