MCPcopy Create free account
hub / github.com/ImageEngine/cortex / numSegments

Method numSegments

src/IECoreScene/CurvesPrimitive.cpp:264–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264unsigned 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
273unsigned CurvesPrimitive::numSegments( const CubicBasisf &basis, bool periodic, unsigned numVerts )
274{

Callers 6

testVariableSizeMethod · 0.95
modifyTypedPrimitiveMethod · 0.80
operator()Method · 0.80
curveLengthMethod · 0.80
buildTreeMethod · 0.80
operator()Method · 0.80

Calls 2

readableMethod · 0.80
sizeMethod · 0.45

Tested by 1

testVariableSizeMethod · 0.76