API Reference > geometry-core > Curve > StrokeCountMap > createWithCurvePrimitiveAndOptionalParent createWithCurvePrimitiveAndOptionalParent MethodStatic create a StrokeCountMap, optionally (a) use parent a1 as new a0 (b) attach a (usually empty) array for component counts. createWithCurvePrimitiveAndOptionalParent(curvePrimitive: CurvePrimitive, parentMap?: StrokeCountMap, componentData?: StrokeCountMap[]): StrokeCountMap Parameter Type Description curvePrimitive CurvePrimitive parentMap StrokeCountMap optional map whose a1 becomes a0 in the new map. componentData StrokeCountMap[] optional array of component StrokeCountMaps. Returns - StrokeCountMap Defined in core/geometry/src/curve/Query/StrokeCountMap.ts Line 91 Last Updated: 13 June, 2024