GraphicsComplex
GraphicsComplex[{pt1,pt2,…},data]
represents a graphics complex in which coordinates given as integers i in graphics primitives in data are taken to be pti.
Details and Options

- GraphicsComplex works in both 2D and 3D.
- GraphicsComplex[{pt1,pt2,…},data] effectively replaces integers i that appear as coordinates in data by the corresponding pti.
- GraphicsComplex provides a convenient way to build up meshes or simplicial complexes in which vertices of polygons are shared.
- GraphicsComplex is treated like a single primitive in Graphics and Graphics3D.
- In GraphicsComplex[pts,data], data can be any nested list of graphics primitives and directives.
- The following options can be given:
-
ContentSelectable Automatic whether to allow contents to be selected VertexColors Automatic vertex colors corresponding to each pti VertexNormals Automatic vertex normals corresponding to each pti VertexTextureCoordinates None vertex texture coordinates for each pti - GraphicsComplex[{pt1,pt2,…},data,VertexColors->{c1,c2,…}] replaces Polygon[{i,j,…}] by Polygon[{pti,ptj,…},VertexColors->{ci,cj,…}].
- The VertexNormals and VertexTextureCoordinates option works the same way.
- Normal[GraphicsComplex[pts,data]] substitutes coordinates to give an ordinary list of graphics primitives and directives.
Examples
open allclose allBasic Examples (3)
In[1]:= |
In[1]:= |
In[2]:= |
Use built-in PolyhedronData:
In[1]:= |
Do the same using PolyhedronData property annotations:
Scope (3)
Options (7)
Applications (2)
Properties & Relations (4)
Neat Examples (2)
See Also
Related Guides
Related Links
Introduced in 2007
(6.0)