![](https://csdnimg.cn/release/download_crawler_static/89651926/bg1.jpg)
Function Reference for Metric Calculation Library
Higher order functions-
num_nodes is the number of nodes, coordinates is the x,y,z data of the nodes, metrics_request_flag is a
bitfield for which metrics to calculate (defined below), metric_vals is a struct that store the results.
� hex_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, hex_metrics* metric_vals );
� tet_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, tet_metrics* metric_vals );
� pyramid_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, pyramid_metrics* metric_vals );
� wedge_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, wedge_metrics* metric_vals );
� knife_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, knife_metrics* metric_vals );
� quad_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, quad_metrics* metric_vals );
� tri_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, tri_metrics* metric_vals );
� edge_quality( int num_nodes, double coordinates[][3], int metrics_request_flag, edge_metrics* metric_vals );
Lower order functions-
num_nodes is the number of nodes, coordinates is the x,y,z data of the nodes. Returns the value.
� double hex_aspect( int num_nodes, double coordinates[][3] );
� double hex_skew( int num_nodes, double coordinates[][3] );
� double hex_taper( int num_nodes, double coordinates[][3] );
� double hex_volume( int num_nodes, double coordinates[][3] );
� double hex_stretch( int num_nodes, double coordinates[][3] );
� double hex_diagonal( int num_nodes, double coordinates[][3] );
� double hex_dimension( int num_nodes, double coordinates[][3] );
� double hex_oddy( int num_nodes, double coordinates[][3] );
� double hex_condition( int num_nodes, double coordinates[][3] );
� double hex_jacobian( int num_nodes, double coordinates[][3] );
� double hex_scaled_jacobian( int num_nodes, double coordinates[][3] );
� double hex_shear( int num_nodes, double coordinates[][3] );
� double hex_shape( int num_nodes, double coordinates[][3] );
� double hex_relative_size( int num_nodes, double coordinates[][3] );
� double hex_shape_and_size( int num_nodes, double coordinates[][3] );
� double tet_aspect( int num_nodes, double coordinates[][3] );
� double tet_aspect_gamma( int num_nodes, double coordinates[][3] );
� double tet_volume( int num_nodes, double coordinates[][3] );
� double tet_condition( int num_nodes, double coordinates[][3] );
� double tet_jacobian( int num_nodes, double coordinates[][3] );
� double tet_scaled_jacobian( int num_nodes, double coordinates[][3] );
� double tet_shear( int num_nodes, double coordinates[][3] );
� double tet_shape( int num_nodes, double coordinates[][3] );
� double tet_relative_size( int num_nodes, double coordinates[][3] );
� double tet_shape_and_size( int num_nodes, double coordinates[][3] );
� double pyramid_volume( int num_nodes, double coordinates[][3] );
� double wedge_volume( int num_nodes, double coordinates[][3] );