Skip to content

PointOctreeTest Remove Error #11

Description

@ricaun

I was messing around with PointOctree and found some issues by trying to remove a point in some specific location, I guess is some round stuff related.

The test below fails in the i = 50 with the vector <25. 25. 25>

[Fact]
public void RemoveTest2()
{
    var size = 0.5f;
    // Add points.
    for (int i = 1; i < 100; ++i)
        _octree.Add(i, new Vector3(size * i));

    // Should remove geometries based on object and bounding box
    for (int i = 1; i < 100; ++i)
    {
        _octree.Remove(i, new Vector3(size * i))
            .ShouldBeTrue($"{i} {new Vector3(size * i)}"); // Fail in 50 <25. 25. 25>
    }

    _octree.Count.ShouldBe(0);
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions