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

Method concatenate

src/IECoreScene/TransformStack.cpp:129–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void TransformStack::concatenate( const Imath::M44f &matrix )
130{
131 Samples &samples = m_stack.top();
132 if( m_motionIndex >= 0 )
133 {
134 if( m_motionIndex >= (int)samples.size() )
135 {
136 throw Exception( "TransformStack::concatenate() called too many times for motion block" );
137 }
138 samples[m_motionIndex].matrix = matrix * samples[m_motionIndex].matrix;
139 m_motionIndex++;
140 }
141 else
142 {
143 for( Samples::iterator it = samples.begin(), eIt = samples.end(); it != eIt; ++it )
144 {
145 it->matrix = matrix * it->matrix;
146 }
147 }
148}
149
150Imath::M44f TransformStack::get() const
151{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected