Commit 6d79dea8 authored by Thomas Pitiot 's avatar Thomas Pitiot

up

parent aa94dd0c
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment