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

Method hash

src/IECoreScene/Primitive.cpp:482–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void Primitive::hash( MurmurHash &h ) const
483{
484 VisibleRenderable::hash( h );
485 for( PrimitiveVariableMap::const_iterator it=variables.begin(); it!=variables.end(); it++ )
486 {
487 h.append( it->first );
488 /// \todo: should we define PrimitiveVariable::hash()
489 /// and call that here?
490 h.append( it->second.interpolation );
491 it->second.data->hash( h );
492 if( it->second.indices )
493 {
494 it->second.indices->hash( h );
495 }
496 }
497
498 topologyHash( h );
499}
500
501namespace
502{

Callers

nothing calls this directly

Calls 5

topologyHashFunction · 0.85
appendMethod · 0.80
hashFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected