Example #1
0
        public bool Filter(IControl selBox, IXSelObject selection, SelectType_e selType, ref string itemText)
        {
            var faceColor = (selection as IXPlanarFace).Color;

            if (faceColor.HasValue && faceColor.Value.R > 0 && faceColor.Value.G == 0 && faceColor.Value.B == 0)
            {
                itemText = $"Red Planar Face [{faceColor.Value.R}, {faceColor.Value.G}, {faceColor.Value.B}]";
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
 public bool Filter(IControl selBox, IXSelObject selection, SelectType_e selType, ref string itemText)
 {
     return(m_TargetType.IsAssignableFrom(selection.GetType()));
 }
Example #3
0
        public bool Filter(IControl selBox, IXSelObject selection, SelectType_e selType, ref string itemText)
        {
            itemText = "Planar Face";

            return((selection as ISwFace).Face.IGetSurface().IsPlane()); //validating the selection and only allowing planar face
        }