MbVoxelCell Class Reference
[Cell]

MeshViz Defines a voxel cell of a volume mesh. More...

#include <MeshVizXLM/mesh/cell/MbVoxelCell.h>

Inheritance diagram for MbVoxelCell:
MbHexahedronCell MiVolumeCell MiCell

List of all members.

Public Member Functions

 MbVoxelCell ()
 MbVoxelCell (size_t n0, size_t n1, size_t n2, size_t n3, size_t n4, size_t n5, size_t n6, size_t n7)
double getVolume (const MiGeometryI *meshGeometry) const
virtual double getRelativeSize (const MiGeometryI *meshGeometry) const

Detailed Description

MeshViz Defines a voxel cell of a volume mesh.

A voxel cell is a parallelepipede of which faces are orthogonal to X, Y, Z axes. with n0 the closest to the origin. Each facet is a rectangle not necessarily a square. The 4 first indices defines a face of the voxel cell. The 4 last indices defines the opposite face.

Facets and nodes are numbered as following :

                         n3----------n2   facet 0 = 0123
                         /|          /|   facet 1 = 4765
                       /  |        /  |   facet 2 = 0374
                     /    |      /    |   facet 3 = 1562
                   n7---------n6      |   facet 4 = 0451
                    |     |    |      |   facet 5 = 3267
                    |    n0----|-----n1
                    |    /     |     /
                    |  /       |   /
                    |/         | /
                   n4---------n5

   

This numerotation must be respected to have the right result returned by getVolume()


Constructor & Destructor Documentation

MbVoxelCell::MbVoxelCell (  )  [inline]

Construct an empty voxel cell.

MbVoxelCell::MbVoxelCell ( size_t  n0,
size_t  n1,
size_t  n2,
size_t  n3,
size_t  n4,
size_t  n5,
size_t  n6,
size_t  n7 
)

Construct a voxel cell.


Member Function Documentation

virtual double MbVoxelCell::getRelativeSize ( const MiGeometryI meshGeometry  )  const [virtual]

Gets the relative size of the cell.


This method is used only by the MoMeshCellShape to display node names if using the relative offset feature and the streamline extraction to adapt the step integration to the size of the cell. getRelativeSize() should return a value depending on the size of the cell even if the default implementation returns 1. For instance, getRelativeSize() can return the length of the longest edge of this cell, or the length of its diagonal.

If getRelativeSize() returns a constant value for any cell, the stream line extraction uses a constant number of step integration anywhere in the mesh. Returning a constant implies that all the cells are supposed to have the same size. getRelativeSize() must not return 0.

Parameters:
[in] meshGeometry the geometry of the mesh. Used to retrieve the node coordinates of this cell.
Returns:
1 by default.

Reimplemented from MbHexahedronCell.

double MbVoxelCell::getVolume ( const MiGeometryI meshGeometry  )  const [virtual]

Gets the volume of the cell.

Reimplemented from MbHexahedronCell.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/