GetObject.CustomGeometryFilter Method
Click or drag to resize

GetObjectCustomGeometryFilter Method

Checks geometry to see if it can be selected. Override to provide fancy filtering.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
public virtual bool CustomGeometryFilter(
	RhinoObject rhObject,
	GeometryBase geometry,
	ComponentIndex componentIndex


Type: Rhino.DocObjectsRhinoObject
parent object being considered.
Type: Rhino.GeometryGeometryBase
geometry being considered.
Type: Rhino.GeometryComponentIndex
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.
The delegate should not throw exceptions. If an exception is thrown, a message box will show and the filter will be disabled.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.7
See Also