addTriangle takes a const pointer to the triangle rather than copying param by value
const-ified facecount mesh function
updated remaining static functions to return trix_result values as well