@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
45 lines (44 loc) • 1.89 kB
TypeScript
import { type Nullable } from "../types.js";
import { type AbstractMesh } from "../Meshes/abstractMesh.js";
import { type ShaderMaterial } from "../Materials/shaderMaterial.js";
import { type EdgesRenderer } from "./edgesRenderer.pure.js";
declare module "../scene.pure.js" {
interface Scene {
/** @internal */
_edgeRenderLineShader: Nullable<ShaderMaterial>;
}
}
declare module "../Meshes/abstractMesh.pure.js" {
interface AbstractMesh {
/**
* Gets the edgesRenderer associated with the mesh
*/
edgesRenderer: Nullable<EdgesRenderer>;
}
}
declare module "../Meshes/linesMesh.pure.js" {
interface LinesMesh {
/**
* Enables the edge rendering mode on the mesh.
* This mode makes the mesh edges visible
* @param epsilon defines the maximal distance between two angles to detect a face
* @param checkVerticesInsteadOfIndices indicates that we should check vertex list directly instead of faces
* @returns the currentAbstractMesh
* @see https://www.babylonjs-playground.com/#19O9TU#0
*/
enableEdgesRendering(epsilon?: number, checkVerticesInsteadOfIndices?: boolean): AbstractMesh;
}
}
declare module "../Meshes/linesMesh.pure.js" {
interface InstancedLinesMesh {
/**
* Enables the edge rendering mode on the mesh.
* This mode makes the mesh edges visible
* @param epsilon defines the maximal distance between two angles to detect a face
* @param checkVerticesInsteadOfIndices indicates that we should check vertex list directly instead of faces
* @returns the current InstancedLinesMesh
* @see https://www.babylonjs-playground.com/#19O9TU#0
*/
enableEdgesRendering(epsilon?: number, checkVerticesInsteadOfIndices?: boolean): InstancedLinesMesh;
}
}