minor typo fix

This commit is contained in:
azykov@mail.ru 2026-05-25 21:36:57 +03:00
parent aeef84b708
commit 1753b897f8
No known key found for this signature in database
2 changed files with 7 additions and 5 deletions

View File

@ -15,6 +15,8 @@ export const HitTestView = observer(function ({ float }: { float: boolean }) {
delete (resultAny.intersection.triangle);
delete (resultAny.intersection.details.kind);
delete (resultAny.intersection.details.index);
delete (resultAny.intersection.triangleVertexIds);
delete (resultAny.intersection.details);
resultAny.intersection.point = formatPoint(resultAny.intersection.point)
resultAny.intersection.depth = Number(Number(resultAny.intersection.depth).toFixed(3));

View File

@ -36,7 +36,7 @@ export type Intersection = {
triangle: { a: THREE.Vector3, b: THREE.Vector3, c: THREE.Vector3 },
details: TriangleHitDetail,
visibility: Visibility,
tiangleVertexIds: [Id, Id, Id],
triangleVertexIds: [Id, Id, Id],
}
export type BaseHitResult = {
@ -329,7 +329,7 @@ export class CircularFrustumIntersection {
intersectsBounds: (box: THREE.Box3) => intersectionResultToBvh(CircularFrustumIntersection.intersectsBox(box, localFrustum)),
intersectsTriangle: (tri: ExtendedTriangle, triIndex: number, contained: boolean) => {
const tiangleVertexIds = getGeometryVertextIds(triIndex);
const triangleVertexIds = getGeometryVertextIds(triIndex);
const normal = new THREE.Vector3();
tri.getNormal(normal);
@ -356,7 +356,7 @@ export class CircularFrustumIntersection {
triangle: tri,
details,
visibility,
tiangleVertexIds,
triangleVertexIds,
};
}),
);
@ -420,7 +420,7 @@ export class CircularFrustumIntersection {
triangle: tri,
details,
visibility,
tiangleVertexIds,
triangleVertexIds,
};
}),
);
@ -464,7 +464,7 @@ export class CircularFrustumIntersection {
const loop = userData.loop;
function vertexId(index: number) {
return intersection.tiangleVertexIds[index];
return intersection.triangleVertexIds[index];
}
switch (intersection.details.kind) {