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

Only show the geometry closest to the crosshair. #1808

Open
dcooperch opened this issue Feb 13, 2025 · 1 comment
Open

Only show the geometry closest to the crosshair. #1808

dcooperch opened this issue Feb 13, 2025 · 1 comment

Comments

@dcooperch
Copy link

dcooperch commented Feb 13, 2025

Describe the solution you'd like
I would like the following functionality for the crosshair:

Image

Describe alternatives you've considered
Have the ability to only show the geometry for the points closest to the crosshair

I tried the following, but it did not quite work as expected:

    [RelayCommand]
    private void HoveredPointsChanged(HoverCommandArgs args)
    {

        if (args.OldPoints is not null)
        {
            foreach (var oldPoint in args.OldPoints)
            {
                if (oldPoint.Context.Visual is CircleGeometry circle)
                {
                    circle.Width = 0;
                }
            }
        }
        
        if (args.NewPoints is not null)
        {
            foreach (var newPoint in args.NewPoints)
            {
                if (newPoint.Context.Visual is CircleGeometry circle)
                {
                    circle.Width = 10;
                }
            }
        }
    }

Additional context
Does such functionality already exist? If not, can this be added?

@beto-rodriguez
Copy link
Owner

Hi, this is not supported right now, but it seems interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants