Mesh Oriented datABase  (version 5.6.0)
An array-based unstructured mesh library
moab::element_utility::anonymous_namespace{parametrizer.hpp} Namespace Reference

Functions

template<typename Moab , typename Entity_handle , typename Points >
void get_moab_points (Moab &moab, Entity_handle eh, Points &points)
 

Function Documentation

◆ get_moab_points()

template<typename Moab , typename Entity_handle , typename Points >
void moab::element_utility::anonymous_namespace{parametrizer.hpp}::get_moab_points ( Moab &  moab,
Entity_handle  eh,
Points points 
)

Definition at line 16 of file parametrizer.hpp.

17  {
18  const Entity_handle* connectivity_begin;
19  int num_vertices;
20  moab.get_connectivity( eh, connectivity_begin, num_vertices );
21  // TODO: This is hacky, it works correctly since
22  // CartVect is only double d[ 3], with a default
23  // constructor.. get_coords() should be
24  // flexible enough to allow other types..
25  points.resize( num_vertices );
26  moab.get_coords( connectivity_begin, num_vertices, &( points[0][0] ) );
27  }

Referenced by moab::element_utility::Parametrizer::operator()(), and moab::element_utility::Element_parametrizer< Element_map >::operator()().