Skip to content

Commit

Permalink
feat: Add .toCreasedNormals to BufferGeometryUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Dec 19, 2022
1 parent b45e641 commit 40ce9d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/three/examples/jsm/utils/BufferGeometryUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// https://threejs.org/docs/?q=buffergeome#examples/en/utils/BufferGeometryUtils

import {
BufferAttribute,
BufferGeometry,
Expand All @@ -24,3 +26,11 @@ export function computeMikkTSpaceTangents(
export function mergeGroups(geometry: BufferGeometry): BufferGeometry;
export function deinterleaveAttribute(geometry: BufferGeometry): void;
export function deinterleaveGeometry(geometry: BufferGeometry): void;

/**
* Creates a new, non-indexed geometry with smooth normals everywhere except faces that meet at an angle greater than the crease angle.
*
* @param geometry The input geometry.
* @param creaseAngle The crease angle.
*/
export function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;

0 comments on commit 40ce9d5

Please sign in to comment.