C++ MItMeshPolygon::getUVAtPoint() CRASH

25 views
Skip to first unread message

Michał Frątczak

unread,
Apr 23, 2015, 5:22:24 AM4/23/15
to python_in...@googlegroups.com
Sorry for a C++ question :)
So:
MItMeshPolygon::getUVAtPoint(MPoint&, float (&) [2], MSpace::Space, MString const*)
This methos crashes maya2015 if iterator is set to a face with near-zero area.

pseudo code:

polyIter.setIndex( findSomeSmallFace() );
MPoint samplePoint = somewhereNearThatSmallFace();
float2 uvPoint;
polyIter.getUVAtPoint(samplePoint, uvPoint, MSpace::kWorld); // CRASH !!


So, do you guys maybe have a ready routine to evaluate face UVs from a nearby point ?

thanks
-michal
Reply all
Reply to author
Forward
0 new messages