Distribution3DRefPtr createVelocityDistribution(void) { //Sphere Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(0.0,0.0,-4.5)); TheLineDistribution->setPoint2(Pnt3f(0.0,0.0,-5.0)); return TheLineDistribution; }
Distribution3DRefPtr createSizeDistribution(void) { //Sphere Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(5.0,5.0,1.0)); TheLineDistribution->setPoint2(Pnt3f(10.0,10.0,1.0)); return TheLineDistribution; }
Distribution3DRefPtr createTrailSizeDistribution(void) { //Line Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(2.0,2.0,2.0)); TheLineDistribution->setPoint2(Pnt3f(2.5,2.5,2.5)); return TheLineDistribution; }
Distribution3DRefPtr createSizeDistribution(void) { //Line Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(4.45,4.45,4.45)); TheLineDistribution->setPoint2(Pnt3f(4.45,4.45,4.45)); return TheLineDistribution; }
// helper functions to create particle system distributions Distribution3DRefPtr createPositionDistribution(void) { //Line Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(0.0,0.0,0.0)); TheLineDistribution->setPoint2(Pnt3f(0.0,0.0,0.0)); return TheLineDistribution; }
Distribution3DRefPtr createColorDistribution(void) { //Line Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(1.0,1.0,1.0)); TheLineDistribution->setPoint2(Pnt3f(1.0,1.0,0.1)); return TheLineDistribution; }
Distribution3DRefPtr createVelocityDistribution(void) { //Line Distribution, no velocity LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(0.0,0.0,0.0)); TheLineDistribution->setPoint2(Pnt3f(0.0,0.0,0.0)); return TheLineDistribution; }
Distribution3DRefPtr createAccelerationDistribution(void) { //Sphere Distribution LineDistribution3DRefPtr TheLineDistribution = LineDistribution3D::create(); TheLineDistribution->setPoint1(Pnt3f(0.0,0.0,0.0)); TheLineDistribution->setPoint2(Pnt3f(0.0,0.0,0.0)); return TheLineDistribution; }