Hi

I'm trying to get values on geometry at a certain frame.
when using python - as long as I roll the playControl to that frame and
call "refresh" (ugly I know)
data= mesh.GetSurfacePointLocatorsFromPoints()
vertices=mesh.evaluatePositions(data)

I get the correct data.

on C++ no matter what I do, the geometry is not reflecting the
deformations,

searching through the docs,  - it suggests GetGeometry(currentTime);
(defaulting to current)
so:
"
std::vector<double>posData;
PolygonMesh
mesh=node.GetActivePrimitive(currentFrame).GetGeometry(currentFrame);"
PointLocatorData data = mesh.GetSurfacePointLocatorsFromPoints();
posData.resize(data.GetCount()*3);
mesh.EvaluatePositions(data,-1,0,&posData.front());

"""

any ideas???

cheers
Ran

Reply via email to