Go to the documentation of this file. 1 #ifndef SIMPLETORUSPARAMETRIZATION_HEADER
2 #define SIMPLETORUSPARAMETRIZATION_HEADER
23 std::pair< float, float >* param)
const;
27 float epsilon,
bool* uwrap,
bool* vwrap)
const;
29 float epsilon,
size_t uextent,
size_t vextent,
33 void Serialize(std::ostream* o,
bool binary)
const;
42 std::pair< float, float >* param)
const
45 float planex =
s.dot(m_hcs[0].Data());
46 float planey =
s.dot(m_hcs[1].Data());
47 param->first = std::atan2(planey, planex);
50 param->second = std::atan2(minory, minorx);
71 float minorx = std::cos(vangle);
72 float minory = std::sin(vangle);
79 float uangle = u / majorRadius;
91 float minorx = std::cos(vangle);
92 float minory = std::sin(vangle);
100 float uangle = u / majorRadius;
bool IsAppleShaped() const
VectorXD< D, T > sqrt(const VectorXD< D, T > &a)
void WrapBitmap(const GfxTL::AABox< GfxTL::Vector2Df > &bbox, float epsilon, bool *uwrap, bool *vwrap) const
const float MinorRadius() const
const Torus & Shape() const
bool InSpace(float u, float v, Vec3f *p) const
void Parameters(const Vec3f &p, std::pair< float, float > *param) const
static ScalarT Sign(ScalarT s)
const Vec3f & AxisDirection() const
std::vector< T > abs(const std::vector< T > &v)
void Serialize(std::ostream *o, bool binary) const
double v(double t, double v0, double a0, double j)
void WrapComponents(const GfxTL::AABox< GfxTL::Vector2Df > &bbox, float epsilon, size_t uextent, size_t vextent, MiscLib::Vector< int > *componentImg, MiscLib::Vector< std::pair< int, size_t > > *labels) const
VectorXD< 3, float > Vec3f
const float MajorRadius() const
static size_t SerializedSize()
const Vec3f & Center() const
double s(double t, double s0, double v0, double a0, double j)
void Deserialize(std::istream *i, bool binary)
float AppleCutOffAngle() const
SimpleTorusParametrization(const Torus &torus)