three-line-outline
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.7 • Public • Published

    three-line-outline

    This is a geometric implementation of outlines for three.js. It's running in the vertex shader rather than pixel shader and shows/hides geometric lines if one adjacent face is facing away from the camera while the other faces towards.

    I found this useful when rendering mechanical parts for CAD viewers.

    This is WIP, currently works with indexed geometry only.

    Example

    https://dusanbosnjak.com/test/outline/

    Usage

    NPM

    Something like this (see /debugger):

    const myMesh = new Mesh(new CylinderGeometry)
    const myOutline = new OutlineMesh(myMesh)
    

    test

    Keywords

    none

    Install

    npm i three-line-outline

    DownloadsWeekly Downloads

    1

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    41.2 kB

    Total Files

    26

    Last publish

    Collaborators

    • pailhead