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)
Use built-in PolyhedronData:
Do the same using PolyhedronData property annotations:
Scope (3)
The coordinate data for any primitive can come from a GraphicsComplex:
Mixing directives and primitives within a GraphicsComplex:
Options (7)
ContentSelectable (3)
VertexNormals (1)
Applications (2)
Most surface and region plots produce GraphicsComplex:
You can use GraphicsComplex to transform the coordinates in this simple rotation:
Properties & Relations (4)
Set up a graphics complex with shared coordinates:
Applying Normal will split a complex into primitives with duplicated coordinates:
Both forms produce the same image:
Graphics complexes can be built up from integrated PolyhedronData:
Or, get a graphics complex directly:
ExampleData contains a number of 3D graphics complex models:
Many Import formats produce GraphicsComplex:
Text
Wolfram Research (2007), GraphicsComplex, Wolfram Language function, https://reference.wolfram.com/language/ref/GraphicsComplex.html.
CMS
Wolfram Language. 2007. "GraphicsComplex." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GraphicsComplex.html.
APA
Wolfram Language. (2007). GraphicsComplex. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GraphicsComplex.html