-
Notifications
You must be signed in to change notification settings - Fork 433
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
Divison by zero #29
Comments
Hi Maik,
Thanks for reporting!
I believe I already opened an issue for showing the message, just forgot to
do it.
That definitely is a good idea, and also maybe to print out the command to
remove doubles/merge distance.
I'll look into it when I get home.
Best,
Reslav
…On Sat, May 9, 2020, 16:43 Maik Wöhl ***@***.***> wrote:
Hello,
I have just experienced an issue with the following line:
https://github.com/Radivarig/UvSquares/blob/9e7e65658a5609748cec2ec313cfa1f87451f704/uv_squares.py#L415
When two vertices are on the same coordinates due to extruding and
accidentally not moving, there will be a division-by-zero error.
Maybe displaying a report message about that possible mistake would be
good.
if EXTEND_MODE == 'LENGTH_AVERAGE':
try:
fac = edge_lengths[l_b[2].edge.index][0] / edge_lengths[l_a[1].edge.index][0]
except ZeroDivisonError:
operator.report({'ERROR'}, "Two vertices have same coordinates! Aborting...")
# Abort action...
elif EXTEND_MODE == 'LENGTH':
I hope that helps you.
Best regards and stay healthy,
Maik Wöhl
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABP5UCNSYKIA555IYBHBCCTRQVTYLANCNFSM4M42MKPQ>
.
|
No dedup needed, fixed in commit#bb0090d0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have just experienced an issue with the following line:
UvSquares/uv_squares.py
Line 415 in 9e7e656
When two vertices are on the same coordinates due to extruding and accidentally not moving, there will be a division-by-zero error.
Maybe displaying a report message about that possible mistake would be good.
I hope that helps you.
Best regards and stay healthy,
Maik Wöhl
The text was updated successfully, but these errors were encountered: