Lagrange
MeshAdapter< MeshType > Class Template Reference

Adapter class to interface a Lagrange mesh with OpenVDB functions. More...

#include <lagrange/volume/legacy/mesh_to_volume.h>

Public Member Functions

 MeshAdapter (const MeshType &mesh, const openvdb::math::Transform &transform)
 Constructs a new instance. More...
 
size_t polygonCount () const
 Number of mesh facets.
 
size_t pointCount () const
 Number of mesh vertices.
 
size_t vertexCount (size_t) const
 Number of vertices for a given facet.
 
void getIndexSpacePoint (size_t f, size_t lv, openvdb::Vec3d &pos) const
 Return a vertex position in the grid index space. More...
 

Protected Attributes

const MeshTypem_mesh
 
const openvdb::math::Transform & m_transform
 

Detailed Description

template<typename MeshType>
class lagrange::volume::legacy::MeshAdapter< MeshType >

Adapter class to interface a Lagrange mesh with OpenVDB functions.

Constructor & Destructor Documentation

◆ MeshAdapter()

MeshAdapter ( const MeshType mesh,
const openvdb::math::Transform &  transform 
)
inline

Constructs a new instance.

Parameters
[in]meshInput mesh.
[in]transformWorld to index transform.

Member Function Documentation

◆ getIndexSpacePoint()

void getIndexSpacePoint ( size_t  f,
size_t  lv,
openvdb::Vec3d &  pos 
) const
inline

Return a vertex position in the grid index space.

Parameters
[in]fQueried facet index.
[in]lvQueried local vertex index.
[out]posVertex position in grid index space.

The documentation for this class was generated from the following file: