智慧水务管理系统 - 精河县供水工程综合管理平台

EdgeDisplayMode.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Defines how edges contributed by the
  3. * {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
  4. * glTF extension are rendered relative to surface geometry.
  5. * <p>
  6. * Primitives that do not include the extension are unaffected by this setting
  7. * and always render normally.
  8. * </p>
  9. *
  10. * @enum {number}
  11. *
  12. * @experimental This feature is using part of the glTF spec that is not yet final and is subject to change without Cesium's standard deprecation policy.
  13. *
  14. * @see Model#edgeDisplayMode
  15. * @see Cesium3DTileset#edgeDisplayMode
  16. */
  17. const EdgeDisplayMode = {
  18. /**
  19. * Render surfaces only. Edges from the
  20. * {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
  21. * extension are hidden.
  22. *
  23. * @type {number}
  24. * @constant
  25. */
  26. SURFACES_ONLY: 0,
  27. /**
  28. * Render both surfaces and edges. Edges from the
  29. * {@link https://github.com/KhronosGroup/glTF/pull/2479|EXT_mesh_primitive_edge_visibility}
  30. * extension are composited on top of the surface geometry.
  31. *
  32. * @type {number}
  33. * @constant
  34. */
  35. SURFACES_AND_EDGES: 1,
  36. /**
  37. * Render edges only. Surface geometry is hidden for primitives that have edge visibility data,
  38. * approximating CAD-style wireframe rendering. Primitives without the extension are unaffected.
  39. *
  40. * @type {number}
  41. * @constant
  42. */
  43. EDGES_ONLY: 2,
  44. };
  45. Object.freeze(EdgeDisplayMode);
  46. export default EdgeDisplayMode;