/** * Mesh Face Utilities * * Utility functions for mesh face operations including: * - Barycentric coordinate interpolation * - Local to UV conversion * - UV to local conversion */ import { MeshFace } from './mesh_face'; import { Mesh } from './mesh'; import { Vector3 } from '../modeling/transform'; import { Vector2 } from './mesh_face'; /** * Calculate barycentric coordinates for a point in a triangle * Returns [u, v, w] where u + v + w = 1 */ export declare function getBarycentricCoordinates(point: Vector3, v0: Vector3, v1: Vector3, v2: Vector3): [number, number, number] | null; /** * Interpolate UV coordinates using barycentric coordinates */ export declare function interpolateUV(barycentric: [number, number, number], uv0: Vector2, uv1: Vector2, uv2: Vector2): Vector2; /** * Convert 3D point on mesh face to UV coordinates * Uses barycentric interpolation for triangles */ export declare function localToUV(face: MeshFace, mesh: Mesh, point: Vector3): Vector2 | null; /** * Convert UV coordinates to 3D point on mesh face * Inverse of localToUV */ export declare function UVToLocal(face: MeshFace, mesh: Mesh, uv: Vector2): Vector3 | null; /** * Check if a point is inside a face (2D projection) */ export declare function isPointInFace(face: MeshFace, mesh: Mesh, point: Vector3, tolerance?: number): boolean; //# sourceMappingURL=mesh_face_utils.d.ts.map