docsby gkjohnson
On this page

Methods

new MeshFeatures(
	// The primitive's buffer geometry.
	geometry: BufferGeometry,

	// All GLTF textures (indexed by feature texture index).
	textures: Array<Texture>,

	// The raw `EXT_mesh_features` extension object for this primitive.
	data: Object
)
getTextures(): Array<Texture>
getFeatureInfo(): Array<FeatureInfo>
getFeaturesAsync(
	// Triangle index from a raycast hit.
	triangle: number,

	// Barycentric coordinate of the hit point.
	barycoord: Vector3
): Promise<Array<(number|null)>>
getFeatures(
	// Triangle index from a raycast hit.
	triangle: number,

	// Barycentric coordinate of the hit point.
	barycoord: Vector3
): Array<(number|null)>
dispose(): void