t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Typedefs | Functions | Variables
t8_geometry_occ.h File Reference

This header provides the C interface to create a occ geometry. More...

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

Go to the source code of this file.

Typedefs

typedef struct t8_geometry_occ t8_geometry_occ_c
 This typedef holds virtual functions for a particular geometry. More...
 

Functions

t8_geometry_occ_ct8_geometry_occ_new (int dimension, const char *fileprefix, const char *name_in)
 Create a new occ geometry of a given dimension. More...
 
void t8_geometry_occ_destroy (t8_geometry_occ_c **geom)
 Destroy a occ geometry that was created with t8_geometry_occ_new. More...
 

Variables

const int t8_edge_vertex_to_tree_vertex [T8_ECLASS_MAX_EDGES][2]
 
const int t8_edge_to_face [T8_ECLASS_MAX_EDGES][2]
 
const int t8_face_to_edge [T8_ECLASS_MAX_FACES][T8_ECLASS_MAX_EDGES]
 

Detailed Description

This header provides the C interface to create a occ geometry.

Typedef Documentation

◆ t8_geometry_occ_c

typedef struct t8_geometry_occ t8_geometry_occ_c

This typedef holds virtual functions for a particular geometry.

We need it so that we can use t8_geometry_occ_c pointers in .c files without them seeing the actual C++ code (and then not compiling)

Function Documentation

◆ t8_geometry_occ_destroy()

void t8_geometry_occ_destroy ( t8_geometry_occ_c **  geom)

Destroy a occ geometry that was created with t8_geometry_occ_new.

Parameters
[in,out]geomA occ geometry. Set to NULL on output.

◆ t8_geometry_occ_new()

t8_geometry_occ_c* t8_geometry_occ_new ( int  dimension,
const char *  fileprefix,
const char *  name_in 
)

Create a new occ geometry of a given dimension.

Parameters
[in]dimension0 <= dimension <= 3. The dimension.
[in]fileprefixPrefix of a .brep file from which to extract an occ geometry.
[in]nameThe name to give this geometry.
Returns
A pointer to an allocated t8_geometry_occ struct, as if the t8_geometry_occ (int dimension, const char *fileprefix, const char *name) constructor was called.