ug4
ug::HexahedronDescriptor Class Reference

only used to initialize a hexahedron. for all other tasks you should use VolumeDescriptor. More...

#include <grid_objects_3d.h>

Public Member Functions

 HexahedronDescriptor ()
 
 HexahedronDescriptor (const HexahedronDescriptor &td)
 
 HexahedronDescriptor (const VolumeVertices &vv)
 
 HexahedronDescriptor (Vertex *v1, Vertex *v2, Vertex *v3, Vertex *v4, Vertex *v5, Vertex *v6, Vertex *v7, Vertex *v8)
 
uint num_vertices () const
 
Vertexvertex (size_t index) const
 

Protected Attributes

Vertexm_vertex [8]
 

Detailed Description

only used to initialize a hexahedron. for all other tasks you should use VolumeDescriptor.

please be sure to pass the vertices in the correct order: v1, v2, v3, v4: bottom-vertices in counterclockwise order (if viewed from the top). v5, v6, v7, v8: top-vertices in counterclockwise order (if viewed from the top).

Constructor & Destructor Documentation

◆ HexahedronDescriptor() [1/4]

ug::HexahedronDescriptor::HexahedronDescriptor ( )
inline

◆ HexahedronDescriptor() [2/4]

ug::HexahedronDescriptor::HexahedronDescriptor ( const HexahedronDescriptor td)

References vertex().

◆ HexahedronDescriptor() [3/4]

ug::HexahedronDescriptor::HexahedronDescriptor ( const VolumeVertices vv)

◆ HexahedronDescriptor() [4/4]

ug::HexahedronDescriptor::HexahedronDescriptor ( Vertex v1,
Vertex v2,
Vertex v3,
Vertex v4,
Vertex v5,
Vertex v6,
Vertex v7,
Vertex v8 
)

Member Function Documentation

◆ num_vertices()

uint ug::HexahedronDescriptor::num_vertices ( ) const
inline

◆ vertex()

Vertex* ug::HexahedronDescriptor::vertex ( size_t  index) const
inline

Member Data Documentation

◆ m_vertex

Vertex* ug::HexahedronDescriptor::m_vertex[8]
protected

The documentation for this class was generated from the following files: