8 m_maxSphereRadius(maxSphereRadius)
30 if (!sphere.
Init2(points[0], points[1], normals[0], normals[1]))
34 if (sphere.
Radius() > m_maxSphereRadius)
45 if (!sphere.
Init(samples))
class DLL_LINKAGE SpherePrimitiveShape
static size_t SerializedSize()
PrimtiveShape is a shape primitive in conjunction with a parametrization.
size_t SerializedSize() const
PrimitiveShape * Deserialize(std::istream *i, bool binary=true) const
PrimitiveShape * Construct(const MiscLib::Vector< Vec3f > &points, const MiscLib::Vector< Vec3f > &normals) const
unsigned int RequiredSamples() const
size_t Identifier() const
SpherePrimitiveShapeConstructor(float maxSphereRadius=std::numeric_limits< float >::infinity())
void Deserialize(std::istream *i, bool binary)
static size_t SerializedSize()
bool Init2(const Vec3f &p1, const Vec3f &p2, const Vec3f &n1, const Vec3f &n2)
bool Init(const MiscLib::Vector< Vec3f > &samples)