mantaflow  0.10
A framework for fluid simulation
Macros | Functions
painter.cpp File Reference
#include "painter.h"
#include "simpleimage.h"
#include <QtOpenGL>
#include <sstream>
#include <iomanip>

Macros

#define FOR_P_SLICE(__g, __dim, __plane)
 

Functions

Vec3i Manta::getQuad (const Vec3 &l0, const Vec3 &l1, int dim, int plane, Real dx)
 
Vec3i Manta::__fRange (Vec3i size, int dim, int plane)
 
void Manta::getCellCoordinates (const Vec3i &pos, Vec3 box[4], int dim, bool offset=false)
 
void Manta::glBox (const Vec3 &p0, const Vec3 &p1, const float dx)
 
void Manta::projectImg (SimpleImage &img, Grid< Real > &val, int shadeMode=0, Real scale=1.)
 helper to project a grid intro an image (used for ppm export and GUI displauy)
 

Macro Definition Documentation

◆ FOR_P_SLICE

#define FOR_P_SLICE (   __g,
  __dim,
  __plane 
)
Value:
for(Vec3i __g0(__fRange(Vec3i(0,0,0),__dim,__plane)), __g1(__fRange((__g)->getSize(),__dim,__plane+1)), p(__g0); p.z<__g1.z; p.z++) \
for(p.y=__g0.y; p.y < __g1.y; p.y++) \
for(p.x=__g0.x; p.x < __g1.x; p.x++)
Vector3D< int > Vec3i
3D vector class of type int
Definition: randomstream.h:548