emilk / emilk/egui

epaint: Handle NaNs in Path

Open
#5,397 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Is your feature request related to a problem? Please describe.**
I'm making a performance graph and whenever there's a NaN in it (failed to measure or similar), that point on the graph prevents neighboring points from rendering properly.

**Describe the solution you'd like**
I'd like NaNs being treated as discontinuity in the path, same as end/beginning of the path.

**Additional context**
![image](https://github.com/user-attachments/assets/847b64be-3700-49b1-bbe2-6c66a557cffa)
(Mesh under the line handles NaNs somewhat expectedly, you can see Path not rendering points where Mesh does)

Contributor guide

Open the contributing guide

Research direction

Start by locating epaint's Path handling and compare it with the Mesh behavior shown in the issue. Reproduce a performance graph containing NaN values, then verify that NaNs create path discontinuities so neighboring points render correctly, matching the requested behavior for path beginnings and endings.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.