figureone
    Preparing search index...

    3D Shape Collections API Reference


    Extends OBJ_Collection

    CollectionsAxis3 options object that extends OBJ_Collection options object (without parent).

    Each option can either be singular and applied to all axes, or in a 3 element tuple where the first, second and third elements apply to the x, y, and z axes respectively.

    To not create an axis, use a width of exactly 0.


    FigureElementCollection representing x, y, z axes.

    This object creates an x, y, and z axes.

    The axes can be created uniformly, or customized individually.

    See COL_Axis3 for setup options.

    To test examples below, append them to the boilerplate

    figure.add(
    {
    make: 'collections.axis3',
    arrow: true,
    length: 0.5,
    },
    );
    figure.add(
    {
    make: 'collections.axis3',
    arrow: { ends: 'all' },
    start: -0.5,
    length: 1,
    },
    );
    figure.add(
    {
    make: 'collections.axis3',
    arrow: [{ ends: 'end' }, false, { ends: 'all', width: 0.02 }],
    width: 0.02,
    start: [0, 0, -0.5],
    length: [0.5, 0.5, 1],
    },
    );
    figure.add(
    {
    make: 'collections.axis3',
    arrow: { ends: 'all' },
    start: -0.5,
    length: 1,
    lines: true,
    color: [1, 0, 0, 1],
    },
    );