|
Hello,
I’m not able to identify (get) to two seperated surfaces when using polySeparate.
Here is my code
cmds.polyChipOff (MyFacesToExt, ch = 1, kft = 1, dup = 0, off = 0) cmds.polySeparate( MyShapeNode, rs = 1, ch = 1 )
///result
[u’polySurface1’, u’polySurface2’, u’polySeparate4’]
(I seperated an object into 2 surfaces)
The operation works well, but I have some problem identifying which surface is which.
In 90% of the cases, the 2nd surface outputted (u’polySurface2) in this case, is the surface I extracted (the one I need) and the 1st one being the rest of the object (which I do not need). But with some objects, the result is the opposite, the first surface outputted being the one I need.
With that particular object, I have the same result if I manually extract the polygon(s) using
mesh > extract.
Does anyone have any workaround?
Essentially, what I need is to be able to get the surface highlighted in white when doing (mesh-extract) manually, and leave ( I delete ) the one highlighted in green.
any idea?
thanks in advance
|