dispatchToGeometryHandler Method
- "double dispatch" call pattern.
- User code implements a
GeometryHandlerwith specialized methods to handleLineSegment3d,Arc3detc as relevant to its use case. - Each such
GeometryQueryclass implements this method as a one-line method containing the appropriate call such ashandler.handleLineSegment3d () - This allows each type-specific method to be called without a switch or
instanceoftest.
dispatchToGeometryHandler(handler: GeometryHandler): any
| Parameter | Type | Description |
|---|---|---|
| handler | GeometryHandler |
Returns - any
Defined in
- bspline/InterpolationCurve3d.ts Line 253
Last Updated: 30 November, 2023