nicopietroni / quadwild

Implementation of Reliable Feature-Line Driven Quad-Remeshing
GNU General Public License v3.0
253 stars 33 forks source link

The remeshed object has been rotated. #17

Open narnia-mason opened 9 months ago

narnia-mason commented 9 months ago

Hi, first of all, I appreciate for developing such a fantastic program.

It's not an issue but I have a question. I've tried to test the program with default setting such as

.\quadwild \my\path\model.ply 3

Somehow, the remeshed object is rotated 90 deg on the x-axis.

image

(cyan is the original and magenta is the remeshed objects)

I want the object not to be rotated after remeshing. How can I do this?

Thanks!

denis130 commented 9 months ago

Try to apply rotation before remeshing.

narnia-mason commented 9 months ago

@denis130 Nice! But why it rotates in the first place? Can it be guaranteed that it will always rotate that way? For example, the monkey does not rotate!

image
denis130 commented 9 months ago

It rotates because the software you import from is using Y up and Z forward, and in blender you rotate it to the correct rotation without applying it and the remesher creating the new mesh with zero rotation. When you import the mesh, in the options you should change to Z forward and Y up, that should solve your issue.