Skip to main content

computeMeshPlaneSegments

Callable

  • computeMeshPlaneSegments(positions: ArrayLike<number>, indices: ArrayLike<number>, worldMatrix: ArrayLike<number>, planeNormal: Vec3, planeD: number, eps?: number): Segment3[]

  • Compute plane-mesh intersection segments from raw vertex/index data and a world transform. This is the pure-geometry core — no product types, no caching.


    Parameters

    • positions: ArrayLike<number>

      Flat position array [x0,y0,z0, x1,y1,z1, ...]

    • indices: ArrayLike<number>

      Triangle index array

    • worldMatrix: ArrayLike<number>

      4x4 column-major transform matrix (Float32Array or number[])

    • planeNormal: Vec3

      Plane normal Vec3

    • planeD: number

      Plane d coefficient

    • eps: number = DEFAULT_EPS

      Tolerance

    Returns Segment3[]