t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_cmesh_geometry.cxx File Reference

TODO: document this file. More...

#include <t8_cmesh.h>
#include <t8_cmesh/t8_cmesh_types.h>
#include <t8_cmesh/t8_cmesh_geometry.h>
#include <t8_geometry/t8_geometry.h>
#include <t8_geometry/t8_geometry_base.hxx>

Functions

void t8_cmesh_register_geometry (t8_cmesh_t cmesh, const t8_geometry_c *geometry)
 
void t8_cmesh_set_tree_geometry (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const char *geom_name)
 Set the geometry for a tree, thus specify which geometry to use for this tree. More...
 
const t8_geometry_ct8_cmesh_get_tree_geometry (t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
 
const char * t8_cmesh_get_tree_geom_name (t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
 Get the name of the geometry stored for a tree in a cmesh. More...
 

Detailed Description

TODO: document this file.

Function Documentation

◆ t8_cmesh_get_tree_geom_name()

const char* t8_cmesh_get_tree_geom_name ( t8_cmesh_t  cmesh,
t8_gloidx_t  gtreeid 
)

Get the name of the geometry stored for a tree in a cmesh.

Parameters
[in]cmeshA committed cmesh.
[in]gtreeidA global tree in cmesh.
Returns
The name of the tree's geometry or NULL if no geometry is set for this tree.

◆ t8_cmesh_set_tree_geometry()

void t8_cmesh_set_tree_geometry ( t8_cmesh_t  cmesh,
t8_gloidx_t  gtreeid,
const char *  geom_name 
)

Set the geometry for a tree, thus specify which geometry to use for this tree.

Parameters
[in]cmeshA non-committed cmesh.
[in]gtreeidA global tree id in cmesh.
[in]geom_nameThe name of the geometry to use for this tree. See also t8_cmesh_get_tree_geometry