- Preparing search index...
- The search index is not available
feng3d
Methods
createFaceNormals
- createFaceNormals(indices: number[], positions: number[], useFaceWeights?: boolean): {
faceNormals: number[];
faceWeights: number[];
}
-
Parameters
-
indices: number[]
-
positions: number[]
-
useFaceWeights: boolean = false
Returns {
faceNormals: number[];
faceWeights: number[];
}
-
faceNormals: number[]
-
faceWeights: number[]
createFaceTangents
- createFaceTangents(indices: ArrayLike<number>, positions: ArrayLike<number>, uvs: ArrayLike<number>, useFaceWeights?: boolean): {
faceTangents: number[];
faceWeights: number[];
}
-
Parameters
-
indices: ArrayLike<number>
-
positions: ArrayLike<number>
-
uvs: ArrayLike<number>
-
useFaceWeights: boolean = false
Returns {
faceTangents: number[];
faceWeights: number[];
}
-
faceTangents: number[]
-
faceWeights: number[]
createIndices
- createIndices(positions: number[]): number[]
-
Returns number[]
createUVs
- createUVs(positions: number[]): number[]
-
Returns number[]
createVertexNormals
- createVertexNormals(indices: number[], positions: number[], useFaceWeights?: boolean): number[]
-
Parameters
-
indices: number[]
-
positions: number[]
-
useFaceWeights: boolean = false
Returns number[]
createVertexTangents
- createVertexTangents(indices: ArrayLike<number>, positions: ArrayLike<number>, uvs: ArrayLike<number>, useFaceWeights?: boolean): number[]
-
Parameters
-
indices: ArrayLike<number>
-
positions: ArrayLike<number>
-
uvs: ArrayLike<number>
-
useFaceWeights: boolean = false
Returns number[]
getAABB
- getAABB(positions: number[], out?: Box3): Box3
-
Parameters
-
positions: number[]
-
out: Box3 = ...
mergeGeometry
- mergeGeometry(geometrys: {
indices: number[];
normals?: number[];
positions: number[];
tangents?: number[];
uvs?: number[];
}[]): {
indices: number[];
normals?: number[];
positions: number[];
tangents?: number[];
uvs?: number[];
}
-
Parameters
-
geometrys: {
indices: number[];
normals?: number[];
positions: number[];
tangents?: number[];
uvs?: number[];
}[]
Returns {
indices: number[];
normals?: number[];
positions: number[];
tangents?: number[];
uvs?: number[];
}
-
indices: number[]
-
Optional
normals?: number[]
-
positions: number[]
-
Optional
tangents?: number[]
-
Optional
uvs?: number[]
normalizeNormals
- normalizeNormals(normals: number[]): void
-
Returns void
应用变换矩阵