31 #ifndef _ODGITRANSFORMED_INCLUDED_
32 #define _ODGITRANSFORMED_INCLUDED_
49 Transforms() : bWorldToModelValid(
false) {}
52 mutable bool bWorldToModelValid;
60 const Transforms* pPrev = m_TransformStack.
top();
61 Transforms* pNew = m_TransformStack.
push();
64 pNew->xModelToWorld.setToProduct(pPrev->xModelToWorld, xMat);
68 pNew->xModelToWorld = xMat;
79 m_TransformStack.
pop();
84 if(m_TransformStack.
top())
85 return m_TransformStack.
top()->xModelToWorld;
91 const Transforms* pTop = m_TransformStack.
top();
94 if(!pTop->bWorldToModelValid)
96 pTop->xWorldToModel = pTop->xModelToWorld.inverse();
97 pTop->bWorldToModelValid =
true;
99 return pTop->xWorldToModel;
static OdGeMatrix3d planeToWorld(const OdGeVector3d &normal)
static GE_STATIC_EXPORT const OdGeMatrix3d kIdentity
void push(const T &inVal)