/*! the shape and size of a tet Product of the shape and relative size */ C_FUNC_DEF VERDICT_REAL v_tet_shape_and_size( int num_nodes, VERDICT_REAL coordinates[][3] ) { double shape, size; shape = v_tet_shape( num_nodes, coordinates ); size = v_tet_relative_size_squared (num_nodes, coordinates ); return (VERDICT_REAL)(shape * size); }
double avtVMetricShape::Metric (double coords[][3], int type) { #ifdef HAVE_VERDICT switch (type) { case VTK_HEXAHEDRON: case VTK_VOXEL: return v_hex_shape(8, coords); case VTK_TETRA: return v_tet_shape(4,coords); case VTK_QUAD: return v_quad_shape(4, coords); case VTK_TRIANGLE: return v_tri_shape(3, coords); } #endif return -1; }