Exact geodesics: near-zero negative intersection denominator leaves reachable edges without intervals

Aperta
#260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

Start by reading compute_positive_intersection() and tracing how its denominator and zero-numerator checks handle the near-zero boundary case. Reproduce the flat square mesh case with a corner source and compare edge-point distances with queries through adjacent faces. Done means reachable edge points receive intervals and return the analytic distance without breaking other intersection cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

On a flat square mesh with a corner source, GeodesicAlgorithmExact returns GEODESIC_INF for some reachable edge points. Querying the same location through either adjacent face returns the correct analytic distance. The affected edges have empty interval lists.

Tracing propagation identifies a numerical boundary case in compute_positive_intersection(): the denominator evaluates to approximately -4.34e-19, while the numerator is zero. The strict denominator < 0.0 check rejects the intersection before reaching the zero-numerator handling, preventing intervals from being created. In a diagnostic run, moving the angle by one representable step creates the missing interval and restores the correct distance.

Lingua principale
C++
Stelle
1.3k
Fork
188
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nmwsharp/geometry-central

Tutte le issue di nmwsharp/geometry-central

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.