Skip to content

Commit d69df38

Browse files
authored
fix: toCreasedNormals(): call toNonIndexed() only on non-indexed geometries (#564)
* fix: toCreasedNormals(): call toNonIndexed() only on non-indexed geometries * Docs: Clarify units for toCreasedAngle function
1 parent cea2e3f commit d69df38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

types/three/examples/jsm/utils/BufferGeometryUtils.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ export function deinterleaveAttribute(geometry: BufferGeometry): void;
2828
export function deinterleaveGeometry(geometry: BufferGeometry): void;
2929

3030
/**
31-
* Creates a new, non-indexed geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.
31+
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new, non-indexed geometry. Returns the
32+
* geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.
3233
*
3334
* @param geometry The input geometry.
34-
* @param creaseAngle The crease angle.
35+
* @param creaseAngle The crease angle in radians.
3536
*/
3637
export function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
3738

0 commit comments

Comments
 (0)