import { Vector3 } from '../modeling/transform'; export type Vector2 = [number, number]; export interface MeshFaceData { vertices?: string[]; uv?: Record; texture?: string | false | null; material?: string | null; } export declare class MeshFace { mesh: any; vertices: string[]; uv: Record; texture: string | false | null; material: string | null; constructor(mesh: any, data?: MeshFaceData); extend(data: MeshFaceData): this; /** * Get element (mesh) this face belongs to */ get element(): any; /** * Get texture for this face * Framework adapters would resolve actual texture object */ getTexture(textures?: any[], format?: any): any | null | false; /** * Set texture for this face */ setTexture(texture: string | false | null): this; /** * Get UV coordinates for a vertex */ getUV(vertexKey: string): Vector2; /** * Set UV coordinates for a vertex */ setUV(vertexKey: string, uv: Vector2): this; /** * Get center point of face */ getCenter(): Vector3; /** * Get face normal */ getNormal(normalize?: boolean, altTri?: boolean): Vector3; /** * Get sorted vertices (for quads, returns in order) */ getSortedVertices(): string[]; /** * Reset face to default state */ reset(): this; /** * Check if face is valid (has at least 3 vertices) */ isValid(): boolean; /** * Get number of vertices */ get vertexCount(): number; /** * Check if face is a triangle */ get isTriangle(): boolean; /** * Check if face is a quad */ get isQuad(): boolean; getSaveCopy(textures?: any[], format?: any): any; getUndoCopy(): any; /** * Get edges of this face */ getEdges(): Array<[string, string]>; /** * Check if face is concave */ isConcave(): boolean; /** * Get angle between this face and another face (in degrees) */ getAngleTo(otherFace: MeshFace): number; /** * Invert face normal by reversing vertex order */ invert(): this; /** * Convert 3D point on face to UV coordinates * Uses barycentric interpolation */ localToUV(point: Vector3): Vector2 | null; /** * Convert UV coordinates to 3D point on face */ UVToLocal(uv: Vector2): Vector3 | null; } //# sourceMappingURL=mesh_face.d.ts.map