mantaflow
0.10
A framework for fluid simulation
|
#include <shapes.h>
Public Member Functions | |
PYTHON () Box(FluidSolver *parent | |
Vec3 | getSize () const |
Vec3 | getP0 () const |
Vec3 | getP1 () const |
virtual void | setCenter (const Vec3 ¢er) |
virtual Vec3 | getCenter () const |
virtual Vec3 | getExtent () const |
virtual bool | isInside (const Vec3 &pos) const |
Inside test of the shape. | |
virtual void | generateMesh (Mesh *mesh) |
virtual void | generateLevelset (Grid< Real > &phi) |
Public Member Functions inherited from Manta::Shape | |
PYTHON () Shape(FluidSolver *parent) | |
GridType | getType () const |
Get the type of grid. | |
PYTHON () void applyToGrid(GridBase *grid | |
Apply shape to flag grid, set inside cells to | |
PYTHON () void applyToGridSmooth(GridBase *grid | |
PYTHON () LevelsetGrid computeLevelset() | |
PYTHON () void collideMesh(Mesh &mesh) | |
PYTHON () virtual Vec3 getCenter() const | |
PYTHON () virtual void setCenter(const Vec3 ¢er) | |
PYTHON () virtual Vec3 getExtent() const | |
bool | isInsideGrid (int i, int j, int k) const |
Public Attributes | |
Vec3 | center = Vec3::Invalid |
Vec3 Vec3 | p0 = Vec3::Invalid |
Vec3 Vec3 Vec3 | p1 = Vec3::Invalid |
Vec3 Vec3 Vec3 Vec3 | size = Vec3::Invalid) |
Public Attributes inherited from Manta::Shape | |
FlagGrid * | respectFlags =0) |
Real | sigma =1.0 |
Real Real | shift =0 |
Real Real FlagGrid * | respectFlags =0) |
Protected Attributes | |
Vec3 | mP0 |
Vec3 | mP1 |
Protected Attributes inherited from Manta::Shape | |
GridType | mType |
Additional Inherited Members | |
Public Types inherited from Manta::Shape | |
enum | GridType { TypeNone = 0, TypeBox = 1, TypeSphere = 2, TypeCylinder = 3, TypeSlope = 4 } |
Box shape