Auto Mirror addon irreversibly deletes geometry in close proximity to the mirror line #104489

Open
opened 2023-03-17 17:59:46 +01:00 by Aidar-10 · 1 comment

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 4600 Intel 4.3.0 - Build 20.19.15.5171

Blender Version
Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: rBa95bf1ac01be
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Auto Mirror (2, 5, 3)
Author: Lapineige

Short description of error
When I use this addon to apply mirror and the object has details in range of approximately 1mm from the center, all those details are lost and cannot be restored by turning off or turning down merge parameter. More so - even the detail loss seems to be inconsistent as the exact same details on the back of the model get merged in a completely different fashion than on the front of the model

Exact steps for others to reproduce the error
• Install the "mesh: Auto Mirror" addon (If it won't be installed in the file, I'm not sure how this is saved)
• Select the model named "not applied" from the attached file
• Press automirror button on the edit tab without changing the default settings(x-axis selected, positive orientation)
• On the front of the model two grooves near the center get deleted, and on the back - the whole central section gets merged into one point (The described result is also shown on the model named "applied" in the attached file)

**System Information** Operating system: Windows-10-10.0.17763-SP0 64 Bits Graphics card: Intel(R) HD Graphics 4600 Intel 4.3.0 - Build 20.19.15.5171 **Blender Version** Broken: version: 3.4.0, branch: blender-v3.4-release, commit date: 2022-12-06 18:46, hash: `rBa95bf1ac01be` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Auto Mirror (2, 5, 3) Author: Lapineige **Short description of error** When I use this addon to apply mirror and the object has details in range of approximately 1mm from the center, all those details are lost and cannot be restored by turning off or turning down merge parameter. More so - even the detail loss seems to be inconsistent as the exact same details on the back of the model get merged in a completely different fashion than on the front of the model **Exact steps for others to reproduce the error** • Install the "mesh: Auto Mirror" addon (If it won't be installed in the file, I'm not sure how this is saved) • Select the model named "not applied" from the attached file • Press automirror button on the edit tab without changing the default settings(x-axis selected, positive orientation) • On the front of the model two grooves near the center get deleted, and on the back - the whole central section gets merged into one point (The described result is also shown on the model named "applied" in the attached file)
Aidar-10 added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-03-17 17:59:47 +01:00

Hi.
I can confirm that this is still indeed the case with Blender 3.6.7 using the updated Addon version 2.5.4. I'm assuming that the desired output is an object that is mirrored about the twin groves.

As pointed out the issue is with verts that are close to the mirror. By design the minimum value of the "Threshold" is 0.001 or 1mm. This is a fixed value and does not consider the scale of the object item being mirrored.

I believe that the inconsistency comes from either having detail behind the mirror which gets merged in the loop cut step or more likely simply a rounding error due to limited precision which Blender uses to store the verts location in 3d space.

Work-around Options:

  1. Edit the Addon file and change the minimum value to something smaller, in these lines:

    threshold : FloatProperty(
    default= 0.001, min= 0.001,
    description="Vertices closer than this distance are merged on the loopcut",
    )

  2. Change the scale of the object, making it larger, then apply the mirroring, once complete convert back to the desired size.

Possible enhancement options for this addon:

  1. Change the Min FloatProperty for the Threshold - consequences?
  2. Take in scene scale and manipulate the Threshold.
  3. Consider the object size and make the Threshold dynamic for example as a small percentage.
Hi. I can confirm that this is still indeed the case with Blender 3.6.7 using the updated Addon version 2.5.4. I'm assuming that the desired output is an object that is mirrored about the twin groves. As pointed out the issue is with verts that are close to the mirror. By design the minimum value of the "Threshold" is 0.001 or 1mm. This is a fixed value and does not consider the scale of the object item being mirrored. I believe that the inconsistency comes from either having detail behind the mirror which gets merged in the loop cut step or more likely simply a rounding error due to limited precision which Blender uses to store the verts location in 3d space. Work-around Options: 1) Edit the Addon file and change the minimum value to something smaller, in these lines: threshold : FloatProperty( default= 0.001, min= 0.001, description="Vertices closer than this distance are merged on the loopcut", ) 2) Change the scale of the object, making it larger, then apply the mirroring, once complete convert back to the desired size. Possible enhancement options for this addon: 1) Change the Min FloatProperty for the Threshold - consequences? 2) Take in scene scale and manipulate the Threshold. 3) Consider the object size and make the Threshold dynamic for example as a small percentage.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104489
No description provided.