uxarray icon indicating copy to clipboard operation
uxarray copied to clipboard

Barycentric Weight Calculation Divide by Zero Error

Open aaronzedwick opened this issue 8 months ago • 14 comments

Version

v2024

How did you install UXarray?

Conda

What happened?

When passing in a colinear face, such as [[-45, 87.87916205], [ 45, 87.87916205], [135, 87.87916205], [-135, 87.87916205]], a divide by zero error is raised since the area of the first triangle calculated will be zero.

What did you expect to happen?

I was expecting the barycentric function to return weights; instead, an error arose.

Can you provide a MCVE to repoduce the bug?


aaronzedwick avatar Mar 18 '25 13:03 aaronzedwick