Created
June 13, 2020 12:47
-
-
Save chuongmep/7a1445278e69694e1768a9cdd77ab9d9 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