t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_geometry_with_vertices.h File Reference

This header file provides a C interface for functions for the t8_geometry_with_vertices class. More...

#include <t8_cmesh.h>

Go to the source code of this file.

Functions

void t8_cmesh_set_tree_vertices (t8_cmesh_t cmesh, const t8_gloidx_t gtree_id, const double *vertices, const int num_vertices)
 Set the vertex coordinates of a tree in the cmesh. More...
 

Detailed Description

This header file provides a C interface for functions for the t8_geometry_with_vertices class.

Function Documentation

◆ t8_cmesh_set_tree_vertices()

void t8_cmesh_set_tree_vertices ( t8_cmesh_t  cmesh,
const t8_gloidx_t  gtree_id,
const double *  vertices,
const int  num_vertices 
)

Set the vertex coordinates of a tree in the cmesh.

This is currently inefficient, since the vertices are duplicated for each tree. Eventually this function will be replaced by a more efficient one. It is not allowed to call this function after t8_cmesh_commit. The eclass of the tree has to be set before calling this function.

Parameters
[in,out]cmeshThe cmesh to be updated.
[in]gtree_idThe global number of the tree.
[in]verticesAn array of 3 doubles per tree vertex.
[in]num_verticesThe number of verticess in vertices. Must match the number of corners of the tree.