ParticleAgent.cpp 713 Bytes
Newer Older
Thomas Pitiot 's avatar
up  
Thomas Pitiot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#include "Algo/MovingObjects/ParticleAgent.h"
#include "Algo/MovingObjects/mapOperators.h"

namespace CGoGN
{

namespace Algo
{

namespace Volume
{

namespace MovingObjects
{
ParticleAgent::ParticleAgent(mapOperators * operators, VEC3 pos, unsigned int numeroAgent, float ro, float gr, float bl)
{
    envMap_=operators;
    Dart d=envMap_->getBelongingCell(pos);
    part_= new CGoGN::Algo::Volume::MovingObjects::ParticleCell3DOptimised<PFP>(*(envMap_->map), d, pos , envMap_->position, &(envMap_->facecenter),&(envMap_->volumecenter));
    AgentNumero=numeroAgent;
    r=ro;
    g=gr;
    b=bl;
    alive=true;

}

} // namespace MovingObjects

} // namespace Volume

} // namespace Algo

} // namespace CGoGN