arx-level-generator
Version:
A tool for creating Arx Fatalis maps
13 lines (12 loc) • 786 B
TypeScript
import { BufferGeometry, Mesh, Vector3 } from 'three';
import { Texture } from '../../Texture.js';
/**
* Adds a point to the mesh by turning the point into a triangle with the given radius
*
* @param point - the location where the new polygon will be added
* @param mesh - containing the geometry and its textures
* @param texture - the texture of the newly added polygon, default value is the alpha texture of Arx: Texture.alpha
* @param radius - the size of the newly added polygon, default value is 1
* @returns a new mesh with the updated geometry
*/
export declare const addPoint: (point: Vector3, mesh: Mesh, texture?: Texture, radius?: number) => Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material[], import("three").Object3DEventMap>;