| 262 | } |
| 263 | |
| 264 | unsigned CurvesPrimitive::numSegments( unsigned curveIndex ) const |
| 265 | { |
| 266 | if( curveIndex >= m_vertsPerCurve->readable().size() ) |
| 267 | { |
| 268 | throw Exception( "Curve index out of range." ); |
| 269 | } |
| 270 | return numSegments( m_linear, m_basis.step, m_periodic, m_vertsPerCurve->readable()[curveIndex] ); |
| 271 | } |
| 272 | |
| 273 | unsigned CurvesPrimitive::numSegments( const CubicBasisf &basis, bool periodic, unsigned numVerts ) |
| 274 | { |