Represents a polygon graphics primitive.
Polygon[{p1, …, pn}]
Polygon[{p1, …, pn} -> {{q1, …, qm}, …}]
Polygon[{poly1, poly2, …}]
Polygon[{p1, …, pn}, data]
Head[ToBoxes[Graphics3D[{Polygon[]}]]]
→ Graphics3DBoxArea[Polygon[{{0, 0}, {1, 0}, {0, 1}}]]
→ 1/2Area[Polygon[{{{0, 0}, {1, 0}, {0, 1}}, {{1, 1}, {2, 1}, {1, 2}}}]]
→ 1Area[Polygon[{{0, 0}, {4, 0}, {4, 4}, {0, 4}} -> {{{1, 1}, {3, 1}, {3, 3}, {1, 3}}}]]
→ 12Area[Polygon[{{0, 0, 0}, {4, 0, 0}, {4, 4, 0}, {0, 4, 0}} -> {{1, 1, 0}, {3, 1, 0}, {3, 3, 0}, {1, 3, 0}}]]
→ 12StringContainsQ[ExportString[Graphics[{Red, Polygon[{{{0, 0}, {1, 0}, {0, 1}}, {{1, 1}, {2, 1}, {1, 2}}}]}], "SVG"], "<svg"]
→ TrueStringContainsQ[ExportString[Graphics3D[Polygon[{{0, 0, 0}, {4, 0, 0}, {4, 4, 0}, {0, 4, 0}} -> {{1, 1, 0}, {3, 1, 0}, {3, 3, 0}, {1, 3, 0}}], Boxed -> False], "SVG"], "<svg"]
→ True- VertexColors — default Automatic
- VertexNormals — default Automatic
- VertexTextureCoordinates — default None