VirtualFluids 0.2.0
Parallel CFD LBM Solver
Loading...
Searching...
No Matches
vf::gpu::Triangle Struct Reference

#include <Triangle.h>

Public Member Functions

 Triangle (Vertex &v1, Vertex &v2, Vertex &v3, Vertex &normal)
 
 Triangle (Vertex &v1, Vertex &v2, Vertex &v3)
 
 Triangle ()
 
void set (const Vertex &v1, const Vertex &v2, const Vertex &v3)
 
void set (int index, Vertex value)
 
Vertex get (int index)
 
void calcNormal ()
 
void initalLayerThickness (real delta)
 
Vertex getCenterOfMass () const
 
real getHalfAngleBetweenToAdjacentTriangle (const Triangle &t2) const
 
int isEqual (const Triangle &t2) const
 
bool doesNormalsShowToEachOther (const Triangle &t2) const
 
int getCommonEdge (const Triangle &t2) const
 
bool contains (const Vertex &v) const
 
int getNumberOfCommonEdge (const Triangle &t2) const
 
int getTriangleIntersection (const Vertex &P, const Vertex &direction, Vertex &pointOnTri, real &qVal) const
 
void print () const
 
char isUnderFace (const Vertex &point) const
 
bool isUnterExtendedFace (const Vertex &point, real &s) const
 
bool isNotNextToFace (const Vertex &point) const
 
bool isUnderAngleToNeighbors (const Vertex &point) const
 
void getClosestPointsOnEdges (Vertex arr[], const Vertex &P) const
 
real getPerpedicularDistanceFrom (const Vertex &P) const
 
Vertex getPerpedicularPointFrom (const Vertex &P) const
 
bool isQNode (const Vertex &point, const real &s) const
 
bool isNegativeDirectionBorder (const Vertex &point) const
 
bool operator== (const Triangle &t) const
 
TriangleMemento getState () const
 
void setState (const TriangleMemento &memento)
 
void setMinMax (real &minX, real &maxX, real &minY, real &maxY, real &minZ, real &maxZ) const
 

Public Attributes

Vertex v1
 
Vertex v2
 
Vertex v3
 
Vertex normal
 
real alphaAngles [3]
 
real layerThickness
 
uint patchIndex
 

Detailed Description

Definition at line 46 of file Triangle.h.

Constructor & Destructor Documentation

◆ Triangle() [1/3]

vf::gpu::Triangle::Triangle ( Vertex &  v1,
Vertex &  v2,
Vertex &  v3,
Vertex &  normal 
)

Definition at line 44 of file Triangle.cpp.

◆ Triangle() [2/3]

vf::gpu::Triangle::Triangle ( Vertex &  v1,
Vertex &  v2,
Vertex &  v3 
)

Definition at line 45 of file Triangle.cpp.

◆ Triangle() [3/3]

vf::gpu::Triangle::Triangle ( )

Member Function Documentation

◆ calcNormal()

void vf::gpu::Triangle::calcNormal ( )

Definition at line 77 of file Triangle.cpp.

◆ contains()

bool vf::gpu::Triangle::contains ( const Vertex &  v) const

Definition at line 269 of file Triangle.cpp.

◆ doesNormalsShowToEachOther()

bool vf::gpu::Triangle::doesNormalsShowToEachOther ( const Triangle &  t2) const

Definition at line 239 of file Triangle.cpp.

◆ get()

Vertex vf::gpu::Triangle::get ( int  index)

Definition at line 65 of file Triangle.cpp.

◆ getCenterOfMass()

Vertex vf::gpu::Triangle::getCenterOfMass ( ) const

Definition at line 215 of file Triangle.cpp.

◆ getClosestPointsOnEdges()

void vf::gpu::Triangle::getClosestPointsOnEdges ( Vertex  arr[],
const Vertex &  P 
) const

Definition at line 187 of file Triangle.cpp.

◆ getCommonEdge()

int vf::gpu::Triangle::getCommonEdge ( const Triangle &  t2) const

Definition at line 249 of file Triangle.cpp.

◆ getHalfAngleBetweenToAdjacentTriangle()

real vf::gpu::Triangle::getHalfAngleBetweenToAdjacentTriangle ( const Triangle &  t2) const

Definition at line 220 of file Triangle.cpp.

◆ getNumberOfCommonEdge()

int vf::gpu::Triangle::getNumberOfCommonEdge ( const Triangle &  t2) const

Definition at line 275 of file Triangle.cpp.

◆ getPerpedicularDistanceFrom()

real vf::gpu::Triangle::getPerpedicularDistanceFrom ( const Vertex &  P) const

Definition at line 124 of file Triangle.cpp.

◆ getPerpedicularPointFrom()

Vertex vf::gpu::Triangle::getPerpedicularPointFrom ( const Vertex &  P) const

Definition at line 130 of file Triangle.cpp.

◆ getState()

TriangleMemento vf::gpu::Triangle::getState ( ) const

◆ getTriangleIntersection()

int vf::gpu::Triangle::getTriangleIntersection ( const Vertex &  P,
const Vertex &  direction,
Vertex &  pointOnTri,
real &  qVal 
) const

Definition at line 290 of file Triangle.cpp.

◆ initalLayerThickness()

void vf::gpu::Triangle::initalLayerThickness ( real  delta)

Definition at line 85 of file Triangle.cpp.

◆ isEqual()

int vf::gpu::Triangle::isEqual ( const Triangle &  t2) const

Definition at line 234 of file Triangle.cpp.

◆ isNegativeDirectionBorder()

bool vf::gpu::Triangle::isNegativeDirectionBorder ( const Vertex &  point) const

Definition at line 141 of file Triangle.cpp.

◆ isNotNextToFace()

bool vf::gpu::Triangle::isNotNextToFace ( const Vertex &  point) const

Definition at line 147 of file Triangle.cpp.

◆ isQNode()

bool vf::gpu::Triangle::isQNode ( const Vertex &  point,
const real &  s 
) const

Definition at line 135 of file Triangle.cpp.

◆ isUnderAngleToNeighbors()

bool vf::gpu::Triangle::isUnderAngleToNeighbors ( const Vertex &  point) const

Definition at line 166 of file Triangle.cpp.

◆ isUnderFace()

char vf::gpu::Triangle::isUnderFace ( const Vertex &  point) const

Definition at line 91 of file Triangle.cpp.

◆ isUnterExtendedFace()

bool vf::gpu::Triangle::isUnterExtendedFace ( const Vertex &  point,
real &  s 
) const

Definition at line 118 of file Triangle.cpp.

◆ operator==()

bool vf::gpu::Triangle::operator== ( const Triangle &  t) const

Definition at line 391 of file Triangle.cpp.

◆ print()

void vf::gpu::Triangle::print ( ) const

Definition at line 379 of file Triangle.cpp.

◆ set() [1/2]

void vf::gpu::Triangle::set ( const Vertex &  v1,
const Vertex &  v2,
const Vertex &  v3 
)

Definition at line 47 of file Triangle.cpp.

◆ set() [2/2]

void vf::gpu::Triangle::set ( int  index,
Vertex  value 
)

Definition at line 55 of file Triangle.cpp.

◆ setMinMax()

void vf::gpu::Triangle::setMinMax ( real &  minX,
real &  maxX,
real &  minY,
real &  maxY,
real &  minZ,
real &  maxZ 
) const

Definition at line 398 of file Triangle.cpp.

◆ setState()

void vf::gpu::Triangle::setState ( const TriangleMemento &  memento)

Member Data Documentation

◆ alphaAngles

real vf::gpu::Triangle::alphaAngles[3]

Definition at line 49 of file Triangle.h.

◆ layerThickness

real vf::gpu::Triangle::layerThickness

Definition at line 50 of file Triangle.h.

◆ normal

Vertex vf::gpu::Triangle::normal

Definition at line 48 of file Triangle.h.

◆ patchIndex

uint vf::gpu::Triangle::patchIndex

Definition at line 52 of file Triangle.h.

◆ v1

Vertex vf::gpu::Triangle::v1

Definition at line 48 of file Triangle.h.

◆ v2

Vertex vf::gpu::Triangle::v2

Definition at line 48 of file Triangle.h.

◆ v3

Vertex vf::gpu::Triangle::v3

Definition at line 48 of file Triangle.h.


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