9#include <kernel/geometry/conformal_mesh.hpp> 
   10#include <kernel/geometry/mesh_part.hpp> 
   11#include <kernel/geometry/atlas/chart.hpp> 
   30    template<
typename Mesh_>
 
   43      typedef std::map<String, std::unique_ptr<MeshChartType>> 
MeshChartMap;
 
   80        return std::unique_ptr<MeshAtlas>(
new MeshAtlas());
 
   88          s += it->second->bytes();
 
  113        auto it = 
_chart_map.emplace(name, std::move(chart));
 
  124        it.first->second = std::move(chart);
 
  133        std::deque<String> names;
 
  136          names.push_back((*it).first);
 
  167        return (*it).second.get();
 
  176        return (*it).second.get();
 
  209          it->second->transform(origin, angles, offset);
 
Mesh Atlas class template.
MeshAtlas & operator=(const MeshAtlas &)=delete
deleted copy-assignment operator
MeshAtlas(MeshAtlas &&other)=default
move CTOR
const MeshChartType * find_mesh_chart(const String &name) const
Searches for a mesh chart.
MeshChartType * find_mesh_chart(const String &name)
Searches for a mesh chart.
MeshChartMap _chart_map
our chart map
Atlas::ChartBase< MeshType > MeshChartType
our chart base-class type
std::deque< String > get_chart_names() const
Returns the names of all charts of this atlas.
bool add_mesh_chart(const String &name, std::unique_ptr< MeshChartType > chart, bool replace=false)
Inserts a new chart into the map.
MeshAtlas & operator=(MeshAtlas &&other)=default
move-assignment operator
void transform(const VertexType &origin, const VertexType &angles, const VertexType &offset)
Applies a "proper rigid" transformation onto the atlas.
MeshType::VertexType VertexType
our vertex type (aka world point type)
Mesh_ MeshType
our mesh type
const MeshChartMap & get_mesh_chart_map() const
Returns a const reference to the chart map.
static std::unique_ptr< MeshAtlas > make_unique()
Creates a new MeshAtlas on the heap and returns a unique pointer to it.
MeshAtlas(const MeshAtlas &)=delete
deleted copy CTOR
std::map< String, std::unique_ptr< MeshChartType > > MeshChartMap
our chart map type
std::size_t bytes() const
virtual ~MeshAtlas()
virtual DTOR
String class implementation.
@ other
generic/other permutation strategy