UniformStrokeCollector Class
A handler that generates uniformly distributed fractions for stroking a CurvePrimitive.
- claimFractions returns the fractions
- claimLineString returns the strokes
Implements
Methods
| Name | Description | |
|---|---|---|
| constructor(cp?: CurvePrimitive, fractionTol: number = Geometry.smallFraction): UniformStrokeCollector | Constructor. | |
| announceIntervalForUniformStepStrokes(_c: CurvePrimitive, numStrokes: number, f0: number, f1: number): void | Announce uniformly distributed fractions in the fractional interval. | |
| announcePointTangent(_p: Point3d, f: number, _v: Vector3d): void | Announce a single fraction. | |
| announceSegmentInterval(_c: CurvePrimitive, _p0: Point3d, _p1: Point3d, _numStrokes: number, f0: number, f1: number): void | Announce the fractional span of the segment. | |
| claimFractions(remove01: boolean = false): number[] | Retrieve the collected fractions, optionally removing 0 and 1 first. | |
| claimLineString(result?: LineString3d): undefined | LineString3d | Create a LineString3d by evaluating the curve at the collected fractions. | |
| endCurvePrimitive(_c: CurvePrimitive): void | Announce that all data about the curve has been announced (ignored). | |
| endParentCurvePrimitive(_c: CurvePrimitive): void | Announce that all data about the parent curve has been announced (ignored). | |
| needPrimaryGeometryForStrokes(): boolean | Request primary geometry to avoid cached strokes. | |
| startCurvePrimitive(cp: CurvePrimitive): void | Announce the curve primitive that will be described in subsequent calls. | |
| startParentCurvePrimitive(_c: CurvePrimitive): void | Announce a parent curve primitive (ignored). |
Defined in
- geometry3d/GeometryHandler.ts Line 440
Last Updated: 18 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.