Constructors
constructor
- new G3dSubset(source: G3d | G3dScene, instances?: number[]): G3dSubset
Parameters
- source: G3d | G3dScene
Optional
instances: number[]
Methods
except
- except(mode: FilterMode, filter: number[] | Set<number>): G3dSubset
Parameters
- mode: FilterMode
- filter: number[] | Set<number>
filter
- filter(mode: FilterMode, filter: number[] | Set<number>): G3dSubset
Parameters
- mode: FilterMode
- filter: number[] | Set<number>
filterByCount
- filterByCount(predicate: (i: number) => boolean): G3dSubset
Parameters
- predicate: (i: number) => boolean
getAttributeCounts
- getAttributeCounts(section?: MeshSection): G3dMeshCounts
Parameters
- section: MeshSection = 'all'
Returns G3dMeshCounts
getBoundingBox
- getBoundingBox(): Box3
Returns Box3
getInstanceCount
- getInstanceCount(): number
Returns number
getMeshCount
- getMeshCount(): number
Returns number
getMeshIndexCount
- getMeshIndexCount(mesh: number, section: MeshSection): number
Parameters
- mesh: number
- section: MeshSection
Returns number
getMeshInstance
- getMeshInstance(mesh: number, index: number): number
Parameters
- mesh: number
- index: number
Returns number
getMeshInstanceCount
- getMeshInstanceCount(mesh: number): number
Returns number
getMeshInstances
- getMeshInstances(mesh: number): number[]
Returns number[]
getMeshVertexCount
- getMeshVertexCount(mesh: number, section: MeshSection): number
Parameters
- mesh: number
- section: MeshSection
Returns number
getOffsets
- getOffsets(section: MeshSection): G3dMeshOffsets
Returns G3dMeshOffsets
getSourceMesh
- getSourceMesh(index: number): number
Returns number
getVimInstance
- getVimInstance(subsetIndex: number): number
Returns number
getVimInstances
- getVimInstances(): number[]
Returns number[]
Represents a subset of a complete scene definition. Allows for further filtering or to get offsets needed to build the scene.