#ifndef __SOP_BrushHairLen__
#define __SOP_BrushHairLen__
namespace HDK_Sample {
{
public:
protected:
public:
{ return 0; }
{ return 1; }
{ return 1.0f; }
{ return 1.0f; }
{ return 1.0f; }
{ return 1; }
{ return 0; }
{ return 0; }
{ return 0; }
{ return 1; }
protected:
{ }
{ return 0; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{
return myRayOrient.
x(); }
{
return myRayOrient.
y(); }
{
return myRayOrient.
z(); }
{ return myRayHitU; }
{ return myRayHitV; }
{ return myRayHitW; }
{ return myRayHitPressure; }
{ return myPrimHit; }
{ return myPtHit; }
{ return myEvent; }
{ return myUseFore; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 1.0f; }
{ str = "Elendt"; }
{ return 0; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ }
{ return 0; }
{ return 0.0f; }
{ return 1.0f; }
{ return 0; }
{ return 0; }
{ return 1; }
{ str = "hairlen"; }
{ return 0; }
{ }
{ return 0; }
{ return 0; }
{ }
{ return 0; }
{ return 0; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0.0f; }
{ return 0; }
{ return 0.0f; }
{ return 0; }
{ return 0; }
{ return 0; }
{ return 0.0f; }
{ return 1.0f; }
{ return 0; }
{ return 1.0f; }
{ return 1.0f; }
{ return 1.0f; }
{ return 0; }
{ return 0; }
{ return 0; }
{ return myStrokeChanged; }
{ return false; }
{ return false; }
{ return false; }
{ return false; }
{ return false; }
{ return false; }
public:
{ myRayHit = orig; myStrokeChanged =
true;
forceRecook(); }
{ myPrimHit = primidx; myStrokeChanged =
true;
forceRecook(); }
{ myPtHit = ptidx; myStrokeChanged =
true;
forceRecook(); }
{
myRayHitU = u;
myStrokeChanged = true;
}
{ myRayHitPressure = pressure; myStrokeChanged =
true;
forceRecook(); }
{ myUseFore = true; }
{ myUseFore = false; }
{
setFloat(myUseFore ?
"flen" :
"blen", 0, 0, cd.
x());
}
{
}
{
}
protected:
private:
float myRayHitU, myRayHitV, myRayHitW;
float myRayHitPressure;
int myPrimHit;
int myPtHit;
int myEvent;
bool myUseFore;
bool myStrokeChanged;
bool myHairlenFound;
};
}
#endif