Mondschein Engine
0.3.0
|
This class defines a normal calculator for grids. More...
#include <normgrid.h>
Public Member Functions | |
virtual std::vector < Eigen::Vector3d > | flat (const std::vector< std::vector< Eigen::Vector3d > > &_grid) |
Calculate flat normals. More... | |
virtual std::vector < Eigen::Vector3d > | flat_inv (const std::vector< std::vector< Eigen::Vector3d > > &_grid) |
Calculate inverse flat normals. More... | |
virtual std::vector < Eigen::Vector3d > | intermediate (std::vector< std::vector< Eigen::Vector3d > > _grid) |
Calculate fintermediate normals. More... | |
virtual std::vector < Eigen::Vector3d > | intermediate_inv (std::vector< std::vector< Eigen::Vector3d > > _grid) |
Calculate inverse fintermediate normals. More... | |
This class defines a normal calculator for grids.
The Norm_Grid class defines a normal calculator for rectangular grid meshes.
Definition at line 36 of file normgrid.h.
|
virtual |
Calculate flat normals.
_grid | the grid mesh |
mondschein::exception | if a known exception is thrown during execution |
This function calculates flat normals for _grid. That means one normal is calculated for every triangle of the grid. These normals are stored and returned in order of their calculation.
Definition at line 105 of file normgrid.cpp.
|
virtual |
Calculate inverse flat normals.
_grid | the grid mesh |
mondschein::exception | if a known exception is thrown during execution |
Behaves like the above function but inverts the normals.
Definition at line 119 of file normgrid.cpp.
|
virtual |
Calculate fintermediate normals.
_grid | the grid mesh |
mondschein::exception | if a known exception is thrown during execution |
This function calculates intermediate normals for _grid. That means one normal is calculated for every vertex of the grid. These normals are stored and returned in order of their calculation.
Definition at line 133 of file normgrid.cpp.
|
virtual |
Calculate inverse fintermediate normals.
_grid | the grid mesh |
mondschein::exception | if a known exception is thrown during execution |
TBehaves essentiallc like the above function but inverts the normals.
Definition at line 156 of file normgrid.cpp.