Polygon or partial polygon shape options object that extends OBJ_Generic (without drawType)
drawType
To test examples, append them to the boilerplate
// Simple filled hexagonfigure.add({ name: 'hexagon', make: 'polygon', sides: 6, radius: 0.5,}); Copy
// Simple filled hexagonfigure.add({ name: 'hexagon', make: 'polygon', sides: 6, radius: 0.5,});
// Circle from dashed lineconst circ = figure.primitives.polygon({ sides: 100, radius: 0.5, line: { width: 0.03, dash: [0.1, 0.03 ], },});figure.elements.add('circle', circ); Copy
// Circle from dashed lineconst 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 rotatedfigure.add({ name: 'halfOctagon', make: 'polygon', sides: 8, radius: 0.5, angleToDraw: Math.PI, line: { width: 0.03, }, direction: -1, rotation: Math.PI / 2,});@interface Copy
// Half octagon rotatedfigure.add({ name: 'halfOctagon', make: 'polygon', sides: 8, radius: 0.5, angleToDraw: Math.PI, line: { width: 0.03, }, direction: -1, rotation: Math.PI / 2,});@interface
Polygon or partial polygon shape options object that extends OBJ_Generic (without
drawType)See
To test examples, append them to the boilerplate
Example
Example
Example