| 383 | } |
| 384 | |
| 385 | ConstBufferPtr Primitive::getVertexBuffer( const std::string &name ) const |
| 386 | { |
| 387 | const AttributeMap::const_iterator it = m_vertexAttributes.find( name ); |
| 388 | return ( it != m_vertexAttributes.end() ) |
| 389 | ? IECore::runTimeCast< const Buffer >( CachedConverter::defaultCachedConverter()->convert( it->second.get() ) ) |
| 390 | : ConstBufferPtr(); |
| 391 | } |
| 392 | |
| 393 | size_t Primitive::getVertexCount() const |
| 394 | { |