Skip to content

BufferGeometryUtils.d overview

// https://threejs.org/docs/?q=buffergeome#examples/en/utils/BufferGeometryUtils


Table of contents


utils

computeMikkTSpaceTangents

Signature

export declare function computeMikkTSpaceTangents(
  geometry: BufferGeometry,
  MikkTSpace: unknown,
  negateSign?: boolean
): BufferGeometry

computeMorphedAttributes

Signature

export declare function computeMorphedAttributes(object: Mesh | Line | Points): object

deepCloneAttribute

Signature

export declare function deepCloneAttribute(attribute: BufferAttribute): BufferAttribute

deinterleaveAttribute

Signature

export declare function deinterleaveAttribute(geometry: BufferGeometry): void

deinterleaveGeometry

Signature

export declare function deinterleaveGeometry(geometry: BufferGeometry): void

estimateBytesUsed

Signature

export declare function estimateBytesUsed(geometry: BufferGeometry): number

interleaveAttributes

Signature

export declare function interleaveAttributes(attributes: BufferAttribute[]): InterleavedBufferAttribute

mergeAttributes

Signature

export declare function mergeAttributes(attributes: BufferAttribute[]): BufferAttribute

mergeGeometries

Signature

export declare function mergeGeometries(geometries: BufferGeometry[], useGroups?: boolean): BufferGeometry

mergeGroups

Signature

export declare function mergeGroups(geometry: BufferGeometry): BufferGeometry

mergeVertices

Signature

export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry

toCreasedNormals

Modifies the supplied geometry if it is non-indexed, otherwise creates a new, non-indexed geometry. Returns the geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.

Signature

export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry

toTrianglesDrawMode

Signature

export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: TrianglesDrawModes): BufferGeometry