Struct t8_geometry_with_vertices
Defined in File t8_geometry_with_vertices.hxx
Inheritance Relationships
Base Type
public t8_geometry(Struct t8_geometry)
Derived Types
public t8_geometry_cad(Struct t8_geometry_cad)public t8_geometry_cubed_sphere(Struct t8_geometry_cubed_sphere)public t8_geometry_cubed_spherical_shell(Struct t8_geometry_cubed_spherical_shell)public t8_geometry_lagrange(Struct t8_geometry_lagrange)public t8_geometry_linear(Struct t8_geometry_linear)public t8_geometry_linear_axis_aligned(Struct t8_geometry_linear_axis_aligned)public t8_geometry_prismed_spherical_shell(Struct t8_geometry_prismed_spherical_shell)public t8_geometry_quadrangulated_disk(Struct t8_geometry_quadrangulated_disk)public t8_geometry_tessellated_spherical_surface(Struct t8_geometry_tessellated_spherical_surface)public t8_geometry_triangulated_spherical_surface(Struct t8_geometry_triangulated_spherical_surface)
Struct Documentation
-
struct t8_geometry_with_vertices : public t8_geometry
Base class for vertex-based geometries. This class implements member variables storing tree vertex information and updates them before each member function call. Derived classes should not completely overwrite the t8_geom_load_tree_data function since this function takes care of the updates. Instead the derived classes t8_geom_load_tree_data function should also call the function of this base class.
Subclassed by t8_geometry_cad, t8_geometry_cubed_sphere, t8_geometry_cubed_spherical_shell, t8_geometry_lagrange, t8_geometry_linear, t8_geometry_linear_axis_aligned, t8_geometry_prismed_spherical_shell, t8_geometry_quadrangulated_disk, t8_geometry_tessellated_spherical_surface, t8_geometry_triangulated_spherical_surface
Public Functions
-
inline t8_geometry_with_vertices(std::string name)
Basic constructor that sets the name.
- Parameters:
name – [in] The name of the geometry. Used to distinct the geometry from other geometries.
-
inline t8_geometry_with_vertices()
-
inline virtual ~t8_geometry_with_vertices()
The destructor. It does nothing but has to be defined since we may want to delete geometry that is actually inherited and providing an implementation for the destructor ensures that the destructor of the child class will be executed.
-
virtual void t8_geom_load_tree_data(t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
Update a possible internal data buffer for per tree data. This function is called before the first coordinates in a new tree are evaluated. In this implementation we use it to load the tree’s vertex coordinates and class to the internal member variables active_tree_class and active_tree_vertices.
- Parameters:
cmesh – [in] The cmesh.
gtreeid – [in] The global tree.
-
virtual bool t8_geom_tree_negative_volume() const
Check if the currently active tree has a negative volume
- Returns:
True (non-zero) if the currently loaded tree has a negative volume. 0 otherwise.
-
inline virtual t8_geometry_type_t t8_geom_get_type() const
Get the type of this geometry.
- Returns:
The type.
Protected Attributes
-
const double *active_tree_vertices
The vertices of the currently active tree.
-
inline t8_geometry_with_vertices(std::string name)