📄 drei/abstractions/edges

File: edges.md | Updated: 11/15/2025


title: Edges sourcecode: src/core/Edges.tsx

<Grid cols={4}> <li> <Codesandbox id="ny3p4" /> </li> </Grid>

Abstracts THREE.EdgesGeometry. It pulls the geometry automatically from its parent, optionally you can ungroup it and give it a geometry prop. You can give it children, for instance a custom material. Edges is based on <Line> and supports all of its props.

<mesh>
  <boxGeometry />
  <meshBasicMaterial />
  <Edges
    linewidth={4}
    scale={1.1}
    threshold={15} // Display edges only when the angle between two faces exceeds this value (default=15 degrees)
    color="white"
  />
</mesh>