Public Member Functions

  • TorusKnot ()
  • colors (bool enable=true)
  • subdivisionsAxis (int subdiv)
  • subdivisionsHeight (int subdiv)
  • size_t
    getNumVertices () const override
  • size_t
    getNumIndices () const override
  • getPrimitive () const override
  • uint8_t
    getAttribDims (Attrib attr) const override
  • getAvailableAttribs () const override
  • void
    loadInto (Target *target, const AttribSet &requestedAttribs) const override
  • clone () const override

Protected Member Functions

  • void
    calculate (std::vector< vec3 > *positions, std::vector< vec3 > *normals, std::vector< vec2 > *texCoords, std::vector< vec3 > *colors, std::vector< vec3 > *tangents, std::vector< uint32_t > *indices) const
  • int
    gcd (int a, int b) const
  • void
    forceCopyIndicesTrianglesImpl (T *dest) const

Protected Attributes

  • int
    mP
  • int
    mQ
  • int
    mSubdivisionsAxis
  • int
    mSubdivisionsHeight
  • vec3
    mScale
  • float
    mRadius
  • bool
    mHasColors