Macaulay2 » Documentation
Packages » Triangulations :: isWellDefined(Triangulation)
next | previous | forward | backward | up | index | toc

isWellDefined(Triangulation) -- test whether the simplices of a triangulation form a valid triangulation

Description

Defers to topcomIsTriangulation for the authoritative check. A Triangulation object is just packaging: its construction does not verify that the input simplices actually form a triangulation, so use this method to confirm.

i1 : A = transpose matrix {{0,3},{0,1},{-1,-1},{1,-1},{-4,-2},{4,-2}}

o1 = | 0 0 -1 1  -4 4  |
     | 3 1 -1 -1 -2 -2 |

              2       6
o1 : Matrix ZZ  <-- ZZ
i2 : T = regularFineTriangulation A

o2 = triangulation {{0, 1, 2}, {0, 1, 3}, {0, 2, 4}, {0, 3, 5}, {1, 2, 3}, {2, 3, 4}, {3, 4, 5}}

o2 : Triangulation
i3 : isWellDefined T

o3 = true

See also

Ways to use this method:


The source of this document is in Triangulations.m2:1689:0.