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

is_coplanar not working #1240

Open
ZacZhangzhuo opened this issue Dec 26, 2023 · 0 comments
Open

is_coplanar not working #1240

ZacZhangzhuo opened this issue Dec 26, 2023 · 0 comments

Comments

@ZacZhangzhuo
Copy link
Contributor

ZacZhangzhuo commented Dec 26, 2023

def is_coplanar(points, tol=None):

For example, if the number of points are four, it doesn't work.

To duplicate:

from compas.geometry import is_coplanar

points = [
    [0.2829517225424449, -4.839003403981526, 1.0982209046681721],
    [0.28995636105537415, -4.846865971883138, 1.1013225714365642],
    [0.2851504385471344, -4.84279203414917, 1.0995255708694458],
    [0.2909815311431885, -4.833856105804443, 1.1044467687606812],
]

print(is_coplanar(points, tol=1e-5))

Error:

line 136, in is_coplanar
    b = temp.pop(0)
IndexError: pop from empty list
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

1 participant