Triangle Function
Triangle[{p1, p2, p3}] represents a filled triangle with corner points p1, p2, and p3. Triangle[{{p11, p12, p13}, ...}] represents a collection of triangles.
A standard triangle in 2D: In[1]:=Graphics[Triangle[]] Out[1]= A triangle in 3D: In[1]:=Graphics3D[Triangle[{{0, 0, 0}, {1, 0, 0}, {0, 1, 1}}]] Out[1]= Different styles applied to Triangle: In[1]:=ℛ=Triangle[{{0, 0}, {1, 1}, {2, 0}}]; {Graphics[{Pink, ℛ}], Graphics[{EdgeForm[Thick], Pink, ℛ}], Graphics[{EdgeForm[Dashed], Pink, ℛ}], Graphics[{EdgeForm[Directive[Thick, Dashed, Blue]], Pink, ℛ}]} Out[1]={, , , }
Triangle[{p_1, p_2, p_3}] represents the filled triangle with vertices p_1, p_2 and p_3, where each p_i is specified as a list with length corresponding to the embedding dimension. Most commonly, the vertices of a Triangle are lists of length two (giving a triangle in the 2D plane) or three (giving a triangle embedded in 3D space). The zero-argument form Triangle[] evaluates to the standard 2-simplex Triangle[{{0, 0}, {1, 0}, {0, 1}}]. The syntax Triangle[{{p_11, p_12, p_13}, ..., {p_(k1), p_(k2), p_(k3)}}] may be used to represent a multi-triangle collection.
BaseStyle | DefaultBaseStyle | TextureMapping | VertexColors | VertexNormals | VertexTextureCoordinates
Protected | ReadProtected
triangle
Polygon | AASTriangle | SSSTriangle | ASATriangle | SASTriangle | Tetrahedron | Simplex | GeometricScene
901st most common (1 in 77700 symbols)
687th most common (1 in 88000 symbols)
401st most common (1 in 6020 symbols)
introduced in Version 10 (July 2014) last modified in Version 12 (April 2019)