本文整理汇总了C++中SphereDistribution3DRefPtr::setInnerRadius方法的典型用法代码示例。如果您正苦于以下问题:C++ SphereDistribution3DRefPtr::setInnerRadius方法的具体用法?C++ SphereDistribution3DRefPtr::setInnerRadius怎么用?C++ SphereDistribution3DRefPtr::setInnerRadius使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SphereDistribution3DRefPtr
的用法示例。
在下文中一共展示了SphereDistribution3DRefPtr::setInnerRadius方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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;
}
示例2: createPositionDistribution
Distribution3DRefPtr createPositionDistribution(void)
{
//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::SURFACE);
//Sphere Distribution
SphereDistribution3DRefPtr TheSphereDistribution = SphereDistribution3D::create();
TheSphereDistribution->setCenter(Pnt3f(0.0,0.0,0.0));
TheSphereDistribution->setInnerRadius(60.0);
TheSphereDistribution->setOuterRadius(60.0);
TheSphereDistribution->setMinTheta(-3.14159);
TheSphereDistribution->setMaxTheta(3.14159);
return TheSphereDistribution;
}