more work on triangle mesh support