GetObject.CustomGeometryFilter
Public Class
Checks geometry to see if it can be selected. Override to provide fancy filtering.
Namespace: Rhino.Input.Custom
Assembly: RhinoCommon (in RhinoCommon.dll)
**Since:**5.0
Syntax
public virtual bool CustomGeometryFilter( RhinoObject rhObject, GeometryBase geometry, ComponentIndex componentIndex)
Parameters
rhObject
Type: Rhino.DocObjects.RhinoObject
parent object being considered.
geometry
Type: Rhino.Geometry.GeometryBase
geometry being considered.
componentIndex
Type: Rhino.Geometry.ComponentIndex
if >= 0, geometry is a proper sub-part of object->Geometry() with componentIndex.
Return Value
Type:Boolean
The default returns true unless you’ve set a custom geometry filter. If a custom filter has been set, that delegate is called.
Remarks
The delegate should not throw exceptions. If an exception is thrown, a message box will show and the filter will be disabled.