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

This header provides the C interface to create a linear, axis-aligned geometry. More...

#include <t8.h>
#include <t8_geometry/t8_geometry.h>
#include <t8_geometry/t8_geometry_with_vertices.h>

Go to the source code of this file.

Functions

t8_geometry_ct8_geometry_linear_axis_aligned_new (int dim)
 Create a new linear, axis-aligned geometry of a given dimension. More...
 
void t8_geometry_linear_axis_aligned_destroy (t8_geometry_c **geom)
 Destroy a linear, axis-aligned geometry that was created with t8_geometry_linear_axis_aligned_new. More...
 

Detailed Description

This header provides the C interface to create a linear, axis-aligned geometry.

Function Documentation

◆ t8_geometry_linear_axis_aligned_destroy()

void t8_geometry_linear_axis_aligned_destroy ( t8_geometry_c **  geom)

Destroy a linear, axis-aligned geometry that was created with t8_geometry_linear_axis_aligned_new.

Parameters
[in,out]geomA linear, axis-aligned geometry. Set to NULL on output.

◆ t8_geometry_linear_axis_aligned_new()

t8_geometry_c* t8_geometry_linear_axis_aligned_new ( int  dim)

Create a new linear, axis-aligned geometry of a given dimension.

The geometry is only viable for line/quad/hex elements and uses two vertices (min and max coords) per tree. The vertices are saved via the t8_cmesh_set_tree_vertices function.

Parameters
[in]dim0 <= dimension <= 3. The dimension.
Returns
A pointer to an allocated t8_geometry_linear_axis_aligned struct, as if the t8_geometry_linear_axis_aligned (int dimension) constructor was called.