Home Reference Source Repository

js/SceneKit/SCNGeometryTessellator.js

  1. 'use strict'
  2.  
  3. import NSObject from '../ObjectiveC/NSObject'
  4. import SCNTessellationSmoothingMode from './SCNTessellationSmoothingMode'
  5. import MTLTessellationPartitionMode from '../Metal/MTLTessellationPartitionMode'
  6.  
  7. /**
  8. *
  9. * @access public
  10. * @extends {NSObject}
  11. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator
  12. */
  13. export default class SCNGeometryTessellator extends NSObject {
  14.  
  15. /**
  16. * constructor
  17. * @constructor
  18. * @access public
  19. */
  20. constructor() {
  21. super()
  22.  
  23. // Instance Properties
  24.  
  25. /**
  26. *
  27. * @type {number}
  28. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889886-edgetessellationfactor
  29. */
  30. this.edgeTessellationFactor = 0
  31.  
  32. /**
  33. *
  34. * @type {number}
  35. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889878-insidetessellationfactor
  36. */
  37. this.insideTessellationFactor = 0
  38.  
  39. /**
  40. *
  41. * @type {boolean}
  42. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889881-isadaptive
  43. */
  44. this.isAdaptive = false
  45.  
  46. /**
  47. *
  48. * @type {boolean}
  49. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889879-isscreenspace
  50. */
  51. this.isScreenSpace = false
  52.  
  53. /**
  54. *
  55. * @type {number}
  56. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889888-maximumedgelength
  57. */
  58. this.maximumEdgeLength = 0
  59.  
  60. /**
  61. *
  62. * @type {SCNTessellationSmoothingMode}
  63. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889889-smoothingmode
  64. */
  65. this.smoothingMode = SCNTessellationSmoothingMode.none
  66.  
  67. /**
  68. *
  69. * @type {number}
  70. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889887-tessellationfactorscale
  71. */
  72. this.tessellationFactorScale = 0
  73.  
  74. /**
  75. *
  76. * @type {MTLTessellationPartitionMode}
  77. * @see https://developer.apple.com/documentation/scenekit/scngeometrytessellator/2889882-tessellationpartitionmode
  78. */
  79. this.tessellationPartitionMode = MTLTessellationPartitionMode.none
  80.  
  81. }
  82. }