public override bool CustomGeometryFilter(IRhinoObject obj, IOnGeometry geo, OnCOMPONENT_INDEX ci)
 {
     if (obj != null)
     {
         if (obj.IsSolid())
         {
             return(true);
         }
     }
     return(false);
 }
        public override bool CustomGeometryFilter(IRhinoObject obj, IOnGeometry geo, OnCOMPONENT_INDEX ci)
        {
            if (geo != null)
            {
                IOnCurve crv = OnCurve.ConstCast(geo);
                if (crv != null)
                {
                    if (crv.IsClosed() && crv.IsPlanar())
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }

                IOnBrep brep = OnBrep.ConstCast(geo);
                if (brep != null)
                {
                    if (brep.m_F.Count() == 1)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }

                IOnSurface srf = OnSurface.ConstCast(geo);
                if (srf != null)
                {
                    return(true);
                }

                IOnMesh mesh = OnMesh.ConstCast(geo);
                if (mesh != null)
                {
                    return(true);
                }
            }

            return(false);
        }
        public override bool CustomGeometryFilter(IRhinoObject obj, IOnGeometry geo, OnCOMPONENT_INDEX ci)
        {
            if (geo != null)
              {
            IOnCurve crv = OnCurve.ConstCast(geo);
            if (crv != null)
            {
              if (crv.IsClosed() && crv.IsPlanar())
            return true;
              else
            return false;
            }

            IOnBrep brep = OnBrep.ConstCast(geo);
            if (brep != null)
            {
              if (brep.m_F.Count() == 1)
            return true;
              else
            return false;
            }

            IOnSurface srf = OnSurface.ConstCast(geo);
            if (srf != null)
              return true;

            IOnMesh mesh = OnMesh.ConstCast(geo);
            if (mesh != null)
              return true;
              }

              return false;
        }
 public override bool CustomGeometryFilter(IRhinoObject obj, IOnGeometry geo, OnCOMPONENT_INDEX ci)
 {
     if (obj != null)
       {
     if (obj.IsSolid() )
       return true;
       }
       return false;
 }