How to use OverlappingVertices.Check() in pymxs?

How to use OverlappingVertices.Check() in pymxs?

zhengjiaweiMRK7U
Explorer Explorer
478 Views
3 Replies
Message 1 of 4

How to use OverlappingVertices.Check() in pymxs?

zhengjiaweiMRK7U
Explorer
Explorer

I coded like this:

import pymxs
rt = pymxs.runtime


for geo in rt.geometry:
	rt.convertToPoly(geo)
	i = rt.Array()
	rt.OverlappingVertices.Check(rt.currentTime, geo, id(i))
	print(i)

but the output was always #() , no mater how many overlapping vertices was in the "geo".

0 Likes
Accepted solutions (1)
479 Views
3 Replies
Replies (3)
Message 2 of 4

zhengjiaweiMRK7U
Explorer
Explorer

HELP, please...

0 Likes
Message 3 of 4

denisT.MaxDoctor
Advisor
Advisor

try

rt.OverlappingVertices.Check(rt.currentTime, geo, pymxs.mxsreference(i))
0 Likes
Message 4 of 4

zhengjiaweiMRK7U
Explorer
Explorer
Accepted solution

Thanks for reply. Finally I coded this:

 

list = rt.OverlappingVertices.Check(rt.currentTime, rt.getNodeByName('MyMesh'), pymxs.byref([]))[1]
print(list)

 

And it works well.

0 Likes