From David Callu, warning fixes and removal of spaces at end of lines.
This commit is contained in:
@@ -27,13 +27,13 @@ void SinkOperator::beginOperate( Program* prg )
|
||||
DomainOperator::beginOperate(prg );
|
||||
}
|
||||
|
||||
void SinkOperator::handlePoint( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handlePoint( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
const osg::Vec3& value = getValue(P);
|
||||
kill( P, (domain.v1==value) );
|
||||
}
|
||||
|
||||
void SinkOperator::handleLineSegment( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleLineSegment( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
const osg::Vec3& value = getValue(P);
|
||||
osg::Vec3 offset = value - domain.v1, normal = domain.v2 - domain.v1;
|
||||
@@ -43,7 +43,7 @@ void SinkOperator::handleLineSegment( const Domain& domain, Particle* P, double
|
||||
kill( P, (diff<SINK_EPSILON) );
|
||||
}
|
||||
|
||||
void SinkOperator::handleTriangle( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleTriangle( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
bool insideDomain = false;
|
||||
const osg::Vec3& value = getValue(P);
|
||||
@@ -59,7 +59,7 @@ void SinkOperator::handleTriangle( const Domain& domain, Particle* P, double dt
|
||||
kill( P, insideDomain );
|
||||
}
|
||||
|
||||
void SinkOperator::handleRectangle( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleRectangle( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
bool insideDomain = false;
|
||||
const osg::Vec3& value = getValue(P);
|
||||
@@ -75,21 +75,21 @@ void SinkOperator::handleRectangle( const Domain& domain, Particle* P, double dt
|
||||
kill( P, insideDomain );
|
||||
}
|
||||
|
||||
void SinkOperator::handlePlane( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handlePlane( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
const osg::Vec3& value = getValue(P);
|
||||
bool insideDomain = (domain.plane.getNormal()*value>=-domain.plane[3]);
|
||||
kill( P, insideDomain );
|
||||
}
|
||||
|
||||
void SinkOperator::handleSphere( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleSphere( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
const osg::Vec3& value = getValue(P);
|
||||
float r = (value - domain.v1).length();
|
||||
kill( P, (r<=domain.r1) );
|
||||
}
|
||||
|
||||
void SinkOperator::handleBox( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleBox( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
const osg::Vec3& value = getValue(P);
|
||||
bool insideDomain = !(
|
||||
@@ -100,7 +100,7 @@ void SinkOperator::handleBox( const Domain& domain, Particle* P, double dt )
|
||||
kill( P, insideDomain );
|
||||
}
|
||||
|
||||
void SinkOperator::handleDisk( const Domain& domain, Particle* P, double dt )
|
||||
void SinkOperator::handleDisk( const Domain& domain, Particle* P, double /*dt*/ )
|
||||
{
|
||||
bool insideDomain = false;
|
||||
const osg::Vec3& value = getValue(P);
|
||||
|
||||
Reference in New Issue
Block a user