Completed triangle mesh implementation.