brepjs API Reference
    Preparing search index...

    Function createPlane

    • Create a Plane from an origin, optional X direction, and a normal.

      If xDirection is omitted, the X axis is derived automatically via OCCT gp_Ax3.

      Parameters

      • origin: Vec3

        Origin point of the plane.

      • xDirection: Vec3 | null = null

        Explicit X axis direction, or null to auto-derive.

      • normal: Vec3 = ...

        Plane normal (Z direction).

      Returns Plane

      If the normal or derived xDir is zero-length.