figureone
    Preparing search index...

    Polygon or partial polygon shape options object that extends OBJ_Generic (without drawType)

    To test examples, append them to the boilerplate

    // Simple filled hexagon
    figure.add({
    name: 'hexagon',
    make: 'polygon',
    sides: 6,
    radius: 0.5,
    });
    // Circle from dashed line
    const circ = figure.primitives.polygon({
    sides: 100,
    radius: 0.5,
    line: {
    width: 0.03,
    dash: [0.1, 0.03 ],
    },
    });
    figure.elements.add('circle', circ);
    // Half octagon rotated
    figure.add({
    name: 'halfOctagon',
    make: 'polygon',
    sides: 8,
    radius: 0.5,
    angleToDraw: Math.PI,
    line: {
    width: 0.03,
    },
    direction: -1,
    rotation: Math.PI / 2,
    });
    @interface