示例#1
0
 protected override void createdConstraint(MPxConstraint constraint)
 {
     if (constraint != null)
     {
         GeometrySurfaceConstraint c = (GeometrySurfaceConstraint)constraint;
         c.weightType = weightType;
     }
     else
     {
         MGlobal.displayError("Failed to get created constraint.");
     }
 }
 protected override void createdConstraint(MPxConstraint constraint)
 {
     if ( constraint != null )
     {
         GeometrySurfaceConstraint c = (GeometrySurfaceConstraint) constraint;
         c.weightType = weightType;
     }
     else
     {
         MGlobal.displayError("Failed to get created constraint.");
     }
 }