7 #include "imstkHexahedralMesh.h" 8 #include "imstkLogger.h" 9 #include "imstkSurfaceMesh.h" 10 #include "imstkVecDataArray.h" 34 for (
const Vec8i& hexArray : *m_indices)
36 for (
int i = 0; i < 8; ++i)
38 v[i] = vertices[hexArray[i]];
45 A << a[0], b[0], c[0],
49 volume += A.determinant();
54 A << a[0], b[0], c[0],
58 volume += A.determinant();
63 A << a[0], b[0], c[0],
67 volume += A.determinant();
73 std::shared_ptr<SurfaceMesh>
76 LOG(FATAL) <<
"error: not implemented.";
void clear() override
Clear all the mesh data.
void print() const override
Print the hexahedral mesh.
void print() const override
Print the surface mesh.
std::shared_ptr< SurfaceMesh > extractSurfaceMesh() override
Extract surface Mesh.
void clear() override
Clears all the mesh data.
double getVolume() override
Compute and return the volume of the hexahedral mesh.