Example #1
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     foreach (var so in CC.Objects.PrintMeshes)
     {
         if (so.Settings.ObjectType == PrintMeshSettings.ObjectTypes.Solid)
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     if (type == ToolTargetType.Scene)
     {
         targets = new List <SceneObject>(targets.Where((so) => { return(so is DMeshSO); }));
     }
     foreach (var target in targets)
     {
         if (target is DMeshSO == false)
         {
             return(false);
         }
     }
     return(true);
 }
Example #3
0
 public bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     if (type == ToolTargetType.Scene)
     {
         targets = new List <SceneObject>(targets.Where((so) => { return(so is DMeshSO); }));
     }
     if (targets.Count != 2)
     {
         return(false);
     }
     if (targets[0] is DMeshSO == false || targets[1] is DMeshSO == false)
     {
         return(false);
     }
     return(true);
 }
Example #4
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return((type == ToolTargetType.SingleObject) && (targets[0] is DMeshSO));
 }
Example #5
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return((type == ToolTargetType.SingleObject && TypeFilterF(targets[0])) ||
            (type == ToolTargetType.Scene && targets.Where(TypeFilterF).Count() == 1));
 }
Example #6
0
 public bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return((type == ToolTargetType.Scene) ||
            (type == ToolTargetType.SingleObject && targets[0] is PolyCurveSO));
 }
Example #7
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(true);
 }
 public bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(type == ToolTargetType.SingleObject && targets[0].IsSurface);
 }
Example #9
0
 public bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(type == ToolTargetType.Scene);
 }
Example #10
0
 public bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return((type == ToolTargetType.Scene) ||
            (targets.Find((so) => { return so is PolyCurveSO; }) != null));
 }
Example #11
0
 public override bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(((type == ToolTargetType.SingleObject) && targets[0] is DMeshSO) ||
            ((type == ToolTargetType.Scene) && targets.Count(TypeFilterF) == 1));
 }
 public override bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(type == ToolTargetType.SingleObject && targets[0] is DMeshSO);
 }
Example #13
0
 public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets)
 {
     return(type == ToolTargetType.SingleObject);
 }