AutoMovie API
    Preparing search index...

    Function createDrinkware

    • A drinking vessel: a mug, a cup, a drinking glass, a wine glass, or a beer, water or wine bottle.

      The model is the vessel's body as one upright cylinder, with a mug's handle as three bars, a wine glass's stem and foot, and a bottle's neck; with each kind's flat colour, brown for a beer bottle, pale blue for a water bottle and dark green for a wine bottle, that is what tells the six apart. What a hand and a mouth read is exact: each grip's frame lies on the axis of the part it wraps with the part's diameter as its aperture, and the lip stands on the rim on the vessel's +Z side, where the drinker's mouth meets it.

      The vessel stands on its base at the origin, +Y up. A mug's or a cup's handle is on +X, the right of a drinker who faces the +Z side: a loop centred on the body's half height, or resting its lower stub at the base where the body is too short for that, its inside as tall as an index and a middle finger are broad and as deep as the thicker of them, so the two fingers pass through it, its bar an industrial handle's read thickness as an analogue; the fingers' hook grip reads the loop's clearance, not the bar.

      Parameters

      • params: createDrinkware.IParams

        The kind, how full it is and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that picks the model when none is given and draws every dimension left free inside its band; absent, the first model and the middle of each band.

      Returns Archetype<createDrinkware.Affordance, createDrinkware.Dimension>

      The vessel.

      For a fixed dimension outside its band or a fill outside 0 to 1.