API Reference > geometry-core > Polyface > IndexedPolyfaceSubsetVisitor > createSubsetVisitor createSubsetVisitor MethodStatic Create a visitor for iterating a subset of the facets of polyface, with indicated number of points to be added to each facet to produce closed point arrays Typical wrap counts are: 0 -- leave the point arrays with "missing final edge" 1 -- add point 0 as closure point 2 -- add points 0 and 1 as closure and wrap point. This is useful when vertex visit requires two adjacent vectors, e.g. for cross products. The activeFacetIndices array indicates all facets to be visited. createSubsetVisitor(polyface: IndexedPolyface, activeFacetIndices: number[], numWrap: number): IndexedPolyfaceSubsetVisitor Parameter Type Description polyface IndexedPolyface activeFacetIndices number[] numWrap number Returns - IndexedPolyfaceSubsetVisitor Defined in polyface/IndexedPolyfaceVisitor.ts Line 232 Last Updated: 11 June, 2024