|
mantaflow
0.10
A framework for fluid simulation
|
#include <shapes.h>
Public Types | |
| enum | GridType { TypeNone = 0, TypeBox = 1, TypeSphere = 2, TypeCylinder = 3, TypeSlope = 4 } |
Public Member Functions | |
| 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 | |
| virtual bool | isInside (const Vec3 &pos) const |
| Inside test of the shape. | |
| bool | isInsideGrid (int i, int j, int k) const |
| virtual void | generateMesh (Mesh *mesh) |
| virtual void | generateLevelset (Grid< Real > &phi) |
Public Attributes | |
| FlagGrid * | respectFlags =0) |
| Real | sigma =1.0 |
| Real Real | shift =0 |
| Real Real FlagGrid * | respectFlags =0) |
Protected Attributes | |
| GridType | mType |
Base class for all shapes
1.8.13