p4est  1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
p4est_geometry.c File Reference

We provide the identity transformation for reference. More...

#include <p4est_geometry.h>
#include <p8est_geometry.h>

Functions

void p4est_geometry_destroy (p4est_geometry_t *geom)
 Can be used to conveniently destroy a geometry structure. More...
 
static void p4est_geometry_connectivity_X (p4est_geometry_t *geom, p4est_topidx_t which_tree, const double abc[3], double xyz[3])
 
p4est_geometry_t * p4est_geometry_new_connectivity (p4est_connectivity_t *conn)
 Create a geometry structure based on the vertices in a connectivity. More...
 

Detailed Description

We provide the identity transformation for reference.

Please implement p4est_geometry_t as you see fit.

Function Documentation

void p4est_geometry_destroy ( p4est_geometry_t *  geom)

Can be used to conveniently destroy a geometry structure.

The user is free not to call this function at all if they handle the memory of the p4est_geometry_t in their own way.

p4est_geometry_t* p4est_geometry_new_connectivity ( p4est_connectivity_t conn)

Create a geometry structure based on the vertices in a connectivity.

The transformation is constructed using bilinear interpolation.

Parameters
[in]connA p4est_connectivity_t with valid vertices. We do NOT take ownership and expect this structure to stay alive.
Returns
Geometry structure; use with p4est_geometry_destroy.