Consider adding more 3D primitives

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: javafx
    • None

      Currently only Triangle Lists are supported via the TriangleMesh class.

      D3D9 [1], D3D10+ [2], Metal [3], Vulkan [4] and OpenGL [5] all support these additional primitives:
      Point List
      Line List
      Line Strip
      Triangle Strip

      Implementation could be difficult, for example, intersection computation. Point List might have a simpler implementation so would be a good starting point.

      Triangle Fan was removed in D3D10 and is not supported in Metal. There is no good reason to consider it.

      [1] https://learn.microsoft.com/en-us/windows/win32/direct3d9/primitives
      [2] https://learn.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-primitive-topologies
      [3] https://developer.apple.com/documentation/metal/mtlprimitivetype
      [4] https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPrimitiveTopology.html
      [5] https://www.khronos.org/opengl/wiki/Primitive

            Assignee:
            Nir Lisker
            Reporter:
            Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: