private static bool CustomGeometryFilter(IntPtr rhObject, IntPtr ptrGeometry, ComponentIndex componentIndex)
        {
            bool rc = true;

            if (g_active_go != null)
            {
                try
                {
                    RhinoObject  rh_object = RhinoObject.CreateRhinoObjectHelper(rhObject);
                    GeometryBase geom      = GeometryBase.CreateGeometryHelper(ptrGeometry, rh_object);
                    rc = g_active_go.CustomGeometryFilter(rh_object, geom, componentIndex);
                }
                catch (Exception ex)
                {
                    Runtime.HostUtils.ExceptionReport(ex);
                }
            }
            return(rc);
        }
        private static bool CustomGeometryFilter(IntPtr rhObject, IntPtr geometry, ComponentIndex componentIndex)
        {
            bool rc = true;

            if (m_active_go != null)
            {
                try
                {
                    DocObjects.RhinoObject _rhObj = DocObjects.RhinoObject.CreateRhinoObjectHelper(rhObject);
                    GeometryBase           _geom  = GeometryBase.CreateGeometryHelper(geometry, _rhObj);
                    rc = m_active_go.CustomGeometryFilter(_rhObj, _geom, componentIndex);
                }
                catch (Exception ex)
                {
                    Runtime.HostUtils.ExceptionReport(ex);
                }
            }
            return(rc);
        }