Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code. #756

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions types/three/examples/jsm/utils/BufferGeometryUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,3 @@ export function deinterleaveGeometry(geometry: BufferGeometry): void;
* @param creaseAngle The crease angle in radians.
*/
export function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;

/**
* @deprecated Use mergeGeometries instead.
*/
export function mergeBufferGeometries(geometries: BufferGeometry[], useGroups?: boolean): BufferGeometry;

/**
* @deprecated Use mergeAttributes instead.
*/
export function mergeBufferAttributes(attributes: BufferAttribute[]): BufferAttribute;
17 changes: 0 additions & 17 deletions types/three/src/math/Triangle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export class Triangle {
getNormal(target: Vector3): Vector3;
getPlane(target: Plane): Plane;
getBarycoord(point: Vector3, target: Vector3): Vector3 | null;
/**
* @deprecated Triangle.getUV() has been renamed to Triangle.getInterpolation().
*/
getUV(point: Vector3, uv1: Vector2, uv2: Vector2, uv3: Vector2, target: Vector2): Vector2;
getInterpolation(point: Vector3, v1: Vector2, v2: Vector2, v3: Vector2, target: Vector2): Vector2 | null;
getInterpolation(point: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, target: Vector3): Vector3 | null;
getInterpolation(point: Vector3, v1: Vector4, v2: Vector4, v3: Vector4, target: Vector4): Vector4 | null;
Expand All @@ -56,19 +52,6 @@ export class Triangle {
static getNormal(a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3;
static getBarycoord(point: Vector3, a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3 | null;
static containsPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean;
/**
* @deprecated THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation().
*/
static getUV(
point: Vector3,
p1: Vector3,
p2: Vector3,
p3: Vector3,
uv1: Vector2,
uv2: Vector2,
uv3: Vector2,
target: Vector2,
): Vector2;
static getInterpolation(
point: Vector3,
p1: Vector3,
Expand Down
5 changes: 0 additions & 5 deletions types/three/src/objects/SkinnedMesh.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,4 @@ export class SkinnedMesh<
* @param vector
*/
applyBoneTransform(index: number, vector: Vector3): Vector3;

/**
* @deprecated {@link THREE.SkinnedMesh}: {@link boneTransform | .boneTransform()} was renamed to {@link applyBoneTransform | .applyBoneTransform()} in **r151**.
*/
boneTransform(index: number, target: Vector3): Vector3;
}