本文整理汇总了C++中SphereDistribution3DRefPtr::setMinZ方法的典型用法代码示例。如果您正苦于以下问题:C++ SphereDistribution3DRefPtr::setMinZ方法的具体用法?C++ SphereDistribution3DRefPtr::setMinZ怎么用?C++ SphereDistribution3DRefPtr::setMinZ使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SphereDistribution3DRefPtr
的用法示例。
在下文中一共展示了SphereDistribution3DRefPtr::setMinZ方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createPositionDistribution
Distribution3DRefPtr createPositionDistribution(void)
{
//Make The Distribution
//Box Distribution
/*BoxDistribution3DRefPtr TheBoxDistribution = BoxDistribution3D::create();
TheBoxDistribution->setMinPoint(Pnt3f(-10.0,-10.0,-10.0));
TheBoxDistribution->setMaxPoint(Pnt3f(10.0,10.0,10.0));
TheBoxDistribution->setSurfaceOrVolume(BoxDistribution3D::SURFACE);
//Disc Distribution
DiscDistribution3DRefPtr TheDiscDistribution = DiscDistribution3D::create();
TheDiscDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheDiscDistribution->setInnerRadius(10.0);
TheDiscDistribution->setOuterRadius(20.0);
TheDiscDistribution->setMinTheta(0.0);
TheDiscDistribution->setMaxTheta(6.283185307);
TheDiscDistribution->setNormal(Vec3f(0.0,0.0,1.0));
TheDiscDistribution->setSurfaceOrEdge(DiscDistribution3D::SURFACE);
//Cylinder Distribution
CylinderDistribution3DRefPtr TheCylinderDistribution = CylinderDistribution3D::create();
TheCylinderDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheCylinderDistribution->setInnerRadius(30.0);
TheCylinderDistribution->setOuterRadius(100.0);
TheCylinderDistribution->setMinTheta(0.0);
TheCylinderDistribution->setMaxTheta(6.283185);
TheCylinderDistribution->setHeight(400.0);
TheCylinderDistribution->setNormal(Vec3f(0.0,0.0,1.0));
TheCylinderDistribution->setSurfaceOrVolume(CylinderDistribution3D::VOLUME);
//Tri Distribution
TriDistribution3DRefPtr TheTriDistribution = TriDistribution3D::create();
TheTriDistribution->setPoint1(Pnt3f(0.0,0.0,0.0));
TheTriDistribution->setPoint2(Pnt3f(-50.0,1000.0,0.0));
TheTriDistribution->setPoint3(Pnt3f(50.0,1000.0,0.0));
TheTriDistribution->setPoint3(Pnt3f(50.0,1000.0,0.0));
TheTriDistribution->setSurfaceOrEdge(TriDistribution3D::SURFACE);
//GaussianNormal Distribution
GaussianNormalDistribution3DRefPtr TheGaussianNormalDistribution = GaussianNormalDistribution3D::create();
TheGaussianNormalDistribution->setMean(Pnt3f(0.0,0.0,0.0));
TheGaussianNormalDistribution->setStandardDeviationX(100.0);
TheGaussianNormalDistribution->setStandardDeviationY(100.0);
TheGaussianNormalDistribution->setStandardDeviationZ(100.0);*/
//Sphere Distribution
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(0.0);
TheSphereDistribution->setOuterRadius(3.0);
TheSphereDistribution->setMinTheta(0.0);
TheSphereDistribution->setMaxTheta(6.283185);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::SURFACE);
return TheSphereDistribution;
}
示例2: createNormalDistribution
Distribution3DRefPtr createNormalDistribution(void)
{
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(1.0);
TheSphereDistribution->setOuterRadius(1.0);
TheSphereDistribution->setMinTheta(-3.141950);
TheSphereDistribution->setMaxTheta(3.141950);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::SURFACE);
return TheSphereDistribution;
}
示例3: createVelocityDistribution
Distribution3DRefPtr createVelocityDistribution(void)
{
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(10.0);
TheSphereDistribution->setOuterRadius(20.0);
TheSphereDistribution->setMinTheta(0.0);
TheSphereDistribution->setMaxTheta(6.283185);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::SURFACE);
return TheSphereDistribution;
}
示例4: createVelocityDistribution
Distribution3DRefPtr createVelocityDistribution(void)
{
//Sphere Distribution
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(2.0);
TheSphereDistribution->setOuterRadius(5.0);
TheSphereDistribution->setMinTheta(-1.5);
TheSphereDistribution->setMaxTheta(1.5);
TheSphereDistribution->setMinZ(0.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::VOLUME);
return TheSphereDistribution;
}
示例5: createShrapnelPositionDistribution
Distribution3DRefPtr createShrapnelPositionDistribution(void)
{
//Sphere Distribution
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(0.0);
TheSphereDistribution->setOuterRadius(3.0);
TheSphereDistribution->setMinTheta(0.0);
TheSphereDistribution->setMaxTheta(6.283185);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::SURFACE);
return TheSphereDistribution;
}
示例6: createNormalDistribution
Distribution3DRefPtr createNormalDistribution(void)
{
//Sphere Distribution
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(500.0);
TheSphereDistribution->setOuterRadius(5000.0);
TheSphereDistribution->setMinTheta(0.0);
TheSphereDistribution->setMaxTheta(6.283185);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::VOLUME);
return TheSphereDistribution;
}
示例7: createPositionDistribution
Distribution3DRefPtr createPositionDistribution(void)
{
//Sphere Distribution
ConeDistribution3DRefPtr TheConeDistribution = ConeDistribution3D::create();
TheConeDistribution->setPosition(Pnt3f(0.0,0.0,0.0));
TheConeDistribution->setDirection(Vec3f(0.0,0.0,1.0));
TheConeDistribution->setSpread(3.14159);
TheConeDistribution->setMin(1.4);
TheConeDistribution->setMax(1.5);
TheConeDistribution->setSurfaceOrVolume(ConeDistribution3D::VOLUME);
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(1.0);
TheSphereDistribution->setOuterRadius(2.0);
TheSphereDistribution->setMinTheta(0.0);
TheSphereDistribution->setMaxTheta(6.283185);
TheSphereDistribution->setMinZ(-1.0);
TheSphereDistribution->setMaxZ(1.0);
TheSphereDistribution->setSurfaceOrVolume(SphereDistribution3D::VOLUME);
return TheSphereDistribution;
}