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); }
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); }
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); }
public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return((type == ToolTargetType.SingleObject) && (targets[0] is DMeshSO)); }
public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return((type == ToolTargetType.SingleObject && TypeFilterF(targets[0])) || (type == ToolTargetType.Scene && targets.Where(TypeFilterF).Count() == 1)); }
public bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return((type == ToolTargetType.Scene) || (type == ToolTargetType.SingleObject && targets[0] is PolyCurveSO)); }
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); }
public bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return(type == ToolTargetType.Scene); }
public bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return((type == ToolTargetType.Scene) || (targets.Find((so) => { return so is PolyCurveSO; }) != null)); }
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); }
public virtual bool IsSupported(ToolTargetType type, List <SceneObject> targets) { return(type == ToolTargetType.SingleObject); }