ExportGraphicsMeshVisitor Class

  • Iterator to walk the facets of an ExportGraphicsMesh and present them to the world as if visiting a Polyface.
  • Because the ExportGraphicsMesh has limited data:
    • There is no auxData in this visitor.
    • There is no color in this visitor.
    • All edgeVisible are true.

Extends

Extended by

Implements

Methods

Name Description
constructor(facets: ExportGraphicsMesh, numWrap: number): ExportGraphicsMeshVisitor Protected    
clearArrays(): void clear the contents of all arrays.  
clientAuxIndex(_i: number): number Always returns -1 since we never have auxiliary data.  
clientColorIndex(_i: number): number Always returns -1 since we never have colors.  
clientNormalIndex(i: number): number Return the normal index of vertex i within the currently loaded facet.  
clientParamIndex(i: number): number Return the param index of vertex i within the currently loaded facet.  
clientPointIndex(i: number): number Return the point index of vertex i within the currently loaded facet  
clientPolyface(): undefined | Polyface return the client polyface  
createSubsetVisitor(facetIndices: number[], numWrap: number0): ExportGraphicsMeshSubsetVisitor Create a visitor for a subset of the facets visitable by the instance.  
currentReadIndex(): number Return the index (in the client polyface) of the current facet  
getVisitableFacetCount(): number Return the number of facets this visitor is able to visit  
moveToNextFacet(): boolean Load data for the next facet.  
moveToReadIndex(facetIndex: number): boolean Select a facet by simple index.  
pushDataFrom(other: PolyfaceVisitor, index: number): void transfer data from a specified index of the other visitor as new data in this visitor.  
pushInterpolatedDataFrom(other: PolyfaceVisitor, index0: number, fraction: number, index1: number): void transfer interpolated data from the other visitor.  
reset(): void Restart the visitor at the first facet.  
setNumWrap(numWrap: number): void Set the number of vertices to replicate in visitor arrays.  
create(polyface: ExportGraphicsMesh, numWrap: number0): ExportGraphicsMeshVisitor Static Create a visitor for iterating the facets of polyface, with indicated number of points to be added to each facet to produce closed point arrays  

Defined in

Last Updated: 27 June, 2025