mantaflow  0.10
A framework for fluid simulation
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
Manta::Shape Class Reference

#include <shapes.h>

Inheritance diagram for Manta::Shape:
Manta::Box Manta::Cylinder Manta::NullShape Manta::Slope Manta::Sphere

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 &center)
 
 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

FlagGridrespectFlags =0)
 
Real sigma =1.0
 
Real Real shift =0
 
Real Real FlagGridrespectFlags =0)
 

Protected Attributes

GridType mType
 

Detailed Description

Base class for all shapes


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