8000 improve coordinate transforms for arbitrarygeometry · Issue #2 · loopbio/FreemooVR · GitHub
[go: up one dir, main page]

Skip to content 8000

improve coordinate transforms for arbitrarygeometry #2

@ap--

Description

@ap--

https://github.com/loopbio/FreemooVRPrivate/blob/e05ce8ab869bbda1a8bc46c8e561da98b0283bec/src/DisplaySurfaceArbitraryGeometry.cpp#L213-L238

I believe this part of the ArbitraryGeometry code should be rewritten.

  1. For the UV -> XYZ path, we should just probe vertically down. This should speed up uv2xyz calls by quite a bit
  2. To improve the XYZ -> UV path and not return NaNs as often, we should use a custom osgUtil::PolytopeIntersector instead of the line intersectors in all directions, and implement finding the closest point if the polytope intersects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0