Bitbybit Docs
    Preparing search index...

    Interface ShapeWithRoles<T> (Models.OCCT)

    A part a generator made, with the parts its faces play and the frames it is placed by: each role lists the faces that play it, as shapes.face.getFaces numbers them, such as a gear's tip or bore, and every face plays one role.

    interface ShapeWithRoles<T> {
        shape: T;
        roles: Record<string, number[]>;
        frames: Record<string, Base.Frame>;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    shape: T

    The part.

    roles: Record<string, number[]>

    For each role, the indexes of the faces that play it.

    frames: Record<string, Base.Frame>

    Named frames on the part, such as a gear's axis: its origin at the centre of the first face, its normal along the axis and its direction toward the first tooth.