from simplextree import SimplexTree
st = SimplexTree([[0,1,2]])
print(st)Simplex Tree with (3, 3, 1) (0, 1, 2)-simplices
Performs an elementary collapse on two given simplices.
Checks whether its possible to collapse \sigma through \tau, and if so, both simplices are removed. A simplex \sigma is said to be collapsible through one of its faces \tau if \sigma is the only coface of \tau (excluding \tau itself).
| Name | Type | Description | Default |
|---|---|---|---|
| sigma | Collection | maximal simplex to collapse | required |
| tau | Collection | face of sigma to collapse | required |
| Name | Type | Description |
|---|---|---|
| bool | whether the pair was collapsed |
Simplex Tree with (3, 3, 1) (0, 1, 2)-simplices