FeatureIndex Class

Describes the set of Features associated with a MeshArgs or PolylineArgs. The mesh or polyline may have zero or one features; or, individual vertices may be associated with different features. The features are expressed as unsigned 32-bit integer Ids of Features within a FeatureTable.

Methods

Name Description
constructor(): FeatureIndex    
reset(): void Reset to an empty index.  

Properties

Name Type Description
featureID number If FeatureIndex.type is FeatureIndexType.Uniform, the Id of the single feature.  
featureIDs undefined | Uint32Array If FeatureIndex.type is FeatureIndexType.NonUniform, the per-vertex feature Ids, indexed by the mesh or polyline's vertex indices.  
isEmpty Accessor ReadOnly boolean True if FeatureIndex.type is FeatureIndexType.Empty.  
isUniform Accessor ReadOnly boolean True if FeatureIndex.type is FeatureIndexType.Uniform.  
type FeatureIndexType Describes the quantity (zero, one, or more than one) of features in this index.  

Defined in

Last Updated: 16 April, 2024