Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LangmuirView::MarchingCubes::Triangle Class Reference

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...
 

Detailed Description

Container for vertices and normals of triangle.

Constructor & Destructor Documentation

LangmuirView::MarchingCubes::Triangle::Triangle ( QObject *  parent = 0)
explicit

create a Triangle

LangmuirView::MarchingCubes::Triangle::~Triangle ( )

Member Function Documentation

void LangmuirView::MarchingCubes::Triangle::calculateNormals ( )

calculate normal vectors

void LangmuirView::MarchingCubes::Triangle::setVertex ( int  index,
QVector3D  vector 
)

set a vertex by index

Parameters
indexindex of vertex
vectorvector to set
void LangmuirView::MarchingCubes::Triangle::sort ( )

sort vertices

Member Data Documentation

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


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