eulerjs API / @eulerjs/core / analyzeTopology
analyzeTopology()
ts
function analyzeTopology(geometry, weldTolerance?): MeshTopology;Defined in: packages/core/src/geometry.ts:53
Counts how many triangles share each edge after welding vertices closer than weldTolerance. Welding snaps positions to a grid of that size, so two vertices that straddle a grid line can stay unwelded; keep the tolerance well below the mesh's smallest edge. Triangles two of whose corners weld together are left out: they enclose nothing, and older three.js cones have a ring of them at the tip, which would otherwise share each edge there with two more triangles.
Parameters
| Parameter | Type | Default value |
|---|---|---|
geometry | BufferGeometry | undefined |
weldTolerance? | number | 1e-5 |
