brepjs API Reference
    Preparing search index...

    Function projectEdges

    • Project the edges of a 3D shape onto a 2D plane defined by a Camera.

      Parameters

      • shape: AnyShape

        The 3D shape to project.

      • camera: Camera

        Camera defining the projection plane.

      • withHiddenLines: boolean = true

        If true, compute hidden-line edges as well.

      Returns { hidden: Edge[]; visible: Edge[] }

      Separate arrays of visible and hidden projected edges.

      drawProjection for the higher-level Drawing-based API.