Bitbybit Docs
    Preparing search index...

    Interface DrawDefaults (Inputs.Draw)

    The look bitbybit.draw gives what a script draws without options of its own, set once on the context, typically by an app from its settings. Each kind's built-in defaults fill what is not given here, and options a script passes to a draw call are used as they are.

    interface DrawDefaults {
        occt?: Partial<DrawOcctShapeOptions>;
        manifold?: Partial<DrawManifoldOrCrossSectionOptions>;
        jscad?: Partial<DrawBasicGeometryOptions>;
        lines?: Partial<DrawBasicGeometryOptions>;
        metallic?: number;
        roughness?: number;
    }
    Index

    Properties

    occt?: Partial<DrawOcctShapeOptions>

    Defaults for OpenCascade shapes, in the fields draw.optionsOcctShape takes.

    Defaults for Manifold solids, meshes and cross sections.

    jscad?: Partial<DrawBasicGeometryOptions>

    Defaults for JSCAD meshes.

    lines?: Partial<DrawBasicGeometryOptions>

    Defaults for lines, polylines and curves.

    metallic?: number

    How metallic the materials made from a face or back face color are, from 0 to 1; 1 when not given.

    roughness?: number

    How rough those materials are, from 0 for a mirror to 1 for chalk; 0.6 when not given.