Hello,

I am writing a script that extracts a Point located in a mesh using 
anyIntersection of MFnMesh.

However, there are too many points, so the performance does not come out 
while looping.

So I'm trying to find another way, but it's not easy to find example code.
Here's the method I've tried:

1. I tried to work the Python Loop part with C++ MPxCommand, but I couldn't 
find a way to return data by executing the Arguments in the form of 
Float3Array (Point Positions) and the corresponding command. (Return : 
IntArray)
2. It is said that the part can be written in C++ using PyBind, but I know 
that the For Loop speed is limited due to the same GIL issue. Is there any 
way to solve it??
3. It seems that there is no way to increase the speed of the current 
Python Loop by raising the speed of the loop as much as possible.

Loop Count : 1,000,0000 Under
anyIntersection: 4 Direction (Up, Left, Right, Down)

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/cc20157f-7440-454a-a230-e5cd1d84e47en%40googlegroups.com.

Reply via email to