@threlte/extras

<Edges>

Abstracts THREE.EdgesGeometry. This component automatically pulls the geometry from its parent.

Edges are displayed when the angle between two faces exceeds the angle defined by the property threshold.

Model: Battle Damaged Sci-fi Helmet by theblueturtle_

Example

<script lang="ts">
  import { BoxBufferGeometry, MeshBasicMaterial } from 'three'
  import { T } from '@threlte/core'
  import { Edges } from '@threlte/extras'
</script>

<T.Mesh
  geometry={new BoxBufferGeometry(1, 1, 1)}
  material={new MeshBasicMaterial()}
>
  <Edges color="black" />
</T.Mesh>

Component Signature

<Edges> extends <T.LineSegments> and supports all its props, slot props, bindings and events.

Props

name
type
required

color
THREE.ColorRepresentation
no

thresholdAngle
number
no