World-space plane that buildSectionCaps treats as a cut through the source SceneModel.

Convention matches SectionPlane: the half-space dot(dir, p) + dist > 0 is clipped (discarded), the half-space dot(dir, p) + dist <= 0 is kept. dir need not be normalised; the extractor normalises internally and rescales dist to match.

For a viewer!SectionPlane, build a CapPlane directly from its dir and dist accessors — the conventions agree.

interface CapPlane {
    dir: Vec3;
    dist: number;
}

Properties

Properties

dir: Vec3

Plane normal in world space. Points into the clipped half-space. Auto-normalised by the extractor.

dist: number

Plane constant — the signed distance from world origin to the plane along dir, negated. Equivalent to -dot(dir, pos) for any point pos on the plane.