23 #define VERDICT_EXPORTS
65 side1.
set( coordinates[1][0] - coordinates[0][0], coordinates[1][1] - coordinates[0][1],
66 coordinates[1][2] - coordinates[0][2] );
68 side2.
set( coordinates[2][0] - coordinates[0][0], coordinates[2][1] - coordinates[0][1],
69 coordinates[2][2] - coordinates[0][2] );
71 side3.
set( coordinates[3][0] - coordinates[0][0], coordinates[3][1] - coordinates[0][1],
72 coordinates[3][2] - coordinates[0][2] );
74 volume = side3 % ( side1 * side2 ) / 6;
76 side1.
set( coordinates[4][0] - coordinates[1][0], coordinates[4][1] - coordinates[1][1],
77 coordinates[4][2] - coordinates[1][2] );
79 side2.
set( coordinates[5][0] - coordinates[1][0], coordinates[5][1] - coordinates[1][1],
80 coordinates[5][2] - coordinates[1][2] );
82 side3.
set( coordinates[3][0] - coordinates[1][0], coordinates[3][1] - coordinates[1][1],
83 coordinates[3][2] - coordinates[1][2] );
85 volume += side3 % ( side1 * side2 ) / 6;
87 side1.
set( coordinates[5][0] - coordinates[1][0], coordinates[5][1] - coordinates[1][1],
88 coordinates[5][2] - coordinates[1][2] );
90 side2.
set( coordinates[2][0] - coordinates[1][0], coordinates[2][1] - coordinates[1][1],
91 coordinates[2][2] - coordinates[1][2] );
93 side3.
set( coordinates[3][0] - coordinates[1][0], coordinates[3][1] - coordinates[1][1],
94 coordinates[3][2] - coordinates[1][2] );
96 volume += side3 % ( side1 * side2 ) / 6;
99 return (
double)volume;
103 double coordinates[][3],
104 unsigned int metrics_request_flag,