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
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
- relates to
-
JDK-8091968 Suggestion for Shape3D (and Mesh)
-
- Open
-