Created
June 13, 2020 12:47
-
-
Save chuongmep/a49d3915e9039d385896e9d3de4c19a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XYZ MedianPoint( MeshTriangle triangle ) | |
{ | |
XYZ p = XYZ.Zero; | |
p += triangle.get_Vertex( 0 ); | |
p += triangle.get_Vertex( 1 ); | |
p += triangle.get_Vertex( 2 ); | |
p *= 0.3333333333333333; | |
return p; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment