Langmuir
Simulation
|
Container for vertices and normals of triangle. More...
#include <isosurface.h>
Public Member Functions | |
Triangle (QObject *parent=0) | |
create a Triangle More... | |
~Triangle () | |
void | setVertex (int index, QVector3D vector) |
set a vertex by index More... | |
void | calculateNormals () |
calculate normal vectors More... | |
void | sort () |
sort vertices More... | |
Public Attributes | |
QVector3D | v0 |
vertex 0 More... | |
QVector3D | v1 |
vertex 1 More... | |
QVector3D | v2 |
vertex 2 More... | |
QVector3D | n0 |
normal 0 More... | |
QVector3D | n1 |
normal 1 More... | |
QVector3D | n2 |
normal 2 More... | |
Container for vertices and normals of triangle.
|
explicit |
create a Triangle
LangmuirView::MarchingCubes::Triangle::~Triangle | ( | ) |
void LangmuirView::MarchingCubes::Triangle::calculateNormals | ( | ) |
calculate normal vectors
void LangmuirView::MarchingCubes::Triangle::setVertex | ( | int | index, |
QVector3D | vector | ||
) |
set a vertex by index
index | index of vertex |
vector | vector to set |
void LangmuirView::MarchingCubes::Triangle::sort | ( | ) |
sort vertices
QVector3D LangmuirView::MarchingCubes::Triangle::n0 |
normal 0
QVector3D LangmuirView::MarchingCubes::Triangle::n1 |
normal 1
QVector3D LangmuirView::MarchingCubes::Triangle::n2 |
normal 2
QVector3D LangmuirView::MarchingCubes::Triangle::v0 |
vertex 0
QVector3D LangmuirView::MarchingCubes::Triangle::v1 |
vertex 1
QVector3D LangmuirView::MarchingCubes::Triangle::v2 |
vertex 2