Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found a bug #1

Open
kamilisa opened this issue Dec 16, 2019 · 3 comments
Open

I found a bug #1

kamilisa opened this issue Dec 16, 2019 · 3 comments

Comments

@kamilisa
Copy link

kamilisa commented Dec 16, 2019

if I reorder A to B,
like it

cmds.polyReorder(dm='pCube1',dc=['pCube1.vtx[3]','pCube1.e[7]','pCube1.f[1]'],sm='pCube2',sc=['pCube2.vtx[2]','pCube2.e[6]','pCube2.f[5]'])

B normal changed, but B vertexID not change
if I exchange both
dm to sm , sm to dm
everything is successful.

why?

@yantor3d
Copy link
Owner

As per the documentation, the destinationMesh flag declares the mesh that will be re-ordered. In the snippet that you posted, that means that pCube1 will be re-ordered to "match" pCube2, based on the topology map determined by the declared components.

Given the names, it looks like you were using default cubes. In that case, your selections are not topologically congruent. I've attached a screen shot that shows the components you declared.

component_selection

See how they are not "the same" components on the mesh? The re-order command will accept any source components pairs, but it won't create the "same" mesh unless the source components are the "same". Does that make sense?

I hope this helps.

@kamilisa
Copy link
Author

kamilisa commented Dec 23, 2019

emmmm, you not understood my meaning,
like your update picture,
I have two polycubes, both vertex numbers total 8, vertex order not same,

so, I want to re-order them vertex order.

I use polyReorder
if I reorder B to A,

yes, B polycube vertex order transfer to A, successful!
so, A and B vertexID completely same。

But,
undo,
if I modify the commander flag,
dm to sm, sm to dm,
exchange everything, every component,

if I apply A to B, I want to be got the result is B polycube vertex order by A vertex order transfer to,
strangely, the commander can be worked,
but the result, B polycube vertex order not changed, except B polycube vertex normal, the poly face display grow black.

I read the documentation, the flag rule I understand.
I just say, the commander just one way worked, B to A!
if A to B, can't work

@yantor3d
Copy link
Owner

Ok. I understand now.

Please provide a Maya scene with the two cubes you describe so that I may debug this issue.

I'm on vacation for the rest of the year so I won't have a chance to look into this until January.

If you want to try to debug it yourself, I would welcome a merge request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants