Bitbybit Docs
    Preparing search index...

    Interface RecipeBeta (Inputs.Base)

    Solids described as data rather than built: a list of steps (polygons, extrusions, turns and lofts, cuts and unions, transforms, meshes) and the results to build from them. Every number is already resolved, so a recipe has no variables or expressions; how finely circles are divided is left to the kernel that builds it.

    Experimental: the recipe format may still change before it is declared stable.

    interface Recipe {
        format: "bitbybit.recipe";
        version: 1;
        millimetresPerUnit: number;
        tolerance: number;
        buffers: RecipeBuffers;
        nodes: RecipeNode[];
        roots: RecipeRoot[];
        groups?: RecipeGroup[];
    }
    Index

    Properties

    format: "bitbybit.recipe"

    Always bitbybit.recipe.

    version: 1

    The recipe format's version, 1.

    millimetresPerUnit: number

    How many millimetres one unit of the recipe is, for whoever reads the results: the coordinates are in the recipe's own units, and an executor builds in them unscaled.

    tolerance: number

    The distance below which two positions count as the same, in the recipe's units, as the recipe's source measured it. An executor may use it where it compares positions, or not.

    buffers: RecipeBuffers

    The numbers the nodes point into.

    nodes: RecipeNode[]

    The steps, each referring only to steps before it.

    roots: RecipeRoot[]

    The results to build.

    groups?: RecipeGroup[]

    The groups the results belong to, each after the group it lies in; left out when the results are not grouped.