emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
22.53k stars 1.61k forks source link

epaint: Handle NaNs in Path #5397

Open Ved-s opened 3 days ago

Ved-s commented 3 days ago

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 (Mesh under the line handles NaNs somewhat expectedly, you can see Path not rendering points where Mesh does)