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

Reach for the arcs error using reinitializated SDF #147

Open
LetaoC opened this issue Sep 24, 2024 · 0 comments
Open

Reach for the arcs error using reinitializated SDF #147

LetaoC opened this issue Sep 24, 2024 · 0 comments

Comments

@LetaoC
Copy link

LetaoC commented Sep 24, 2024

reach_for_the_arcs function generates two errors using the reinitialized SDF by scikit-fmm.
When grid_number = 5, time step = 1e-3:

Traceback (most recent call last):
  File "/Users/letaochen/Documents/SDF/bug.py", line 17, in <module>
    vr,fr = gpy.reach_for_the_arcs(gridp,sd_fmm)
  File "/Users/letaochen/miniconda3/envs/gpenv/lib/python3.10/site-packages/gpytoolbox/reach_for_the_arcs.py", line 199, in reach_for_the_arcs
    P,N,f = _fine_tune_point_cloud(U, S, P, N, f,
  File "/Users/letaochen/miniconda3/envs/gpenv/lib/python3.10/site-packages/gpytoolbox/reach_for_the_arcs.py", line 648, in _fine_tune_point_cloud
    V,F = point_cloud_to_mesh(P, N,
  File "/Users/letaochen/miniconda3/envs/gpenv/lib/python3.10/site-packages/gpytoolbox/point_cloud_to_mesh.py", line 59, in point_cloud_to_mesh
    assert len(P)>1 and len(P.shape)==2 and P.shape[0]>1, "Must supply at least two points."
AssertionError: Must supply at least two points.

When grid_number = 6, time step = 1e-3:

Traceback (most recent call last):
  File "/Users/letaochen/Documents/SDF/bug.py", line 17, in <module>
    vr,fr = gpy.reach_for_the_arcs(gridp,sd_fmm)

  File "/Users/letaochen/miniconda3/envs/gpenv/lib/python3.10/site-packages/gpytoolbox/reach_for_the_arcs.py", line 189, in reach_for_the_arcs
    return V, F
UnboundLocalError: local variable 'V' referenced before assignment

The python script along with the input files (grids and sd_fmm) are attached.

bug.zip

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