Three.Legacy.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. import { BoxGeometry } from './geometries/BoxGeometry.js';
  2. import { CapsuleGeometry } from './geometries/CapsuleGeometry.js';
  3. import { CircleGeometry } from './geometries/CircleGeometry.js';
  4. import { ConeGeometry } from './geometries/ConeGeometry.js';
  5. import { CylinderGeometry } from './geometries/CylinderGeometry.js';
  6. import { DodecahedronGeometry } from './geometries/DodecahedronGeometry.js';
  7. import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
  8. import { IcosahedronGeometry } from './geometries/IcosahedronGeometry.js';
  9. import { LatheGeometry } from './geometries/LatheGeometry.js';
  10. import { OctahedronGeometry } from './geometries/OctahedronGeometry.js';
  11. import { PlaneGeometry } from './geometries/PlaneGeometry.js';
  12. import { PolyhedronGeometry } from './geometries/PolyhedronGeometry.js';
  13. import { RingGeometry } from './geometries/RingGeometry.js';
  14. import { ShapeGeometry } from './geometries/ShapeGeometry.js';
  15. import { SphereGeometry } from './geometries/SphereGeometry.js';
  16. import { TetrahedronGeometry } from './geometries/TetrahedronGeometry.js';
  17. import { TorusGeometry } from './geometries/TorusGeometry.js';
  18. import { TorusKnotGeometry } from './geometries/TorusKnotGeometry.js';
  19. import { TubeGeometry } from './geometries/TubeGeometry.js';
  20. // r144
  21. export class BoxBufferGeometry extends BoxGeometry {
  22. constructor( width, height, depth, widthSegments, heightSegments, depthSegments ) {
  23. console.warn( 'THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry.' );
  24. super( width, height, depth, widthSegments, heightSegments, depthSegments );
  25. }
  26. }
  27. // r144
  28. export class CapsuleBufferGeometry extends CapsuleGeometry {
  29. constructor( radius, length, capSegments, radialSegments ) {
  30. console.warn( 'THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry.' );
  31. super( radius, length, capSegments, radialSegments );
  32. }
  33. }
  34. // r144
  35. export class CircleBufferGeometry extends CircleGeometry {
  36. constructor( radius, segments, thetaStart, thetaLength ) {
  37. console.warn( 'THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry.' );
  38. super( radius, segments, thetaStart, thetaLength );
  39. }
  40. }
  41. // r144
  42. export class ConeBufferGeometry extends ConeGeometry {
  43. constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
  44. console.warn( 'THREE.ConeBufferGeometry has been renamed to THREE.ConeGeometry.' );
  45. super( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
  46. }
  47. }
  48. // r144
  49. export class CylinderBufferGeometry extends CylinderGeometry {
  50. constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
  51. console.warn( 'THREE.CylinderBufferGeometry has been renamed to THREE.CylinderGeometry.' );
  52. super( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
  53. }
  54. }
  55. // r144
  56. export class DodecahedronBufferGeometry extends DodecahedronGeometry {
  57. constructor( radius, detail ) {
  58. console.warn( 'THREE.DodecahedronBufferGeometry has been renamed to THREE.DodecahedronGeometry.' );
  59. super( radius, detail );
  60. }
  61. }
  62. // r144
  63. export class ExtrudeBufferGeometry extends ExtrudeGeometry {
  64. constructor( shapes, options ) {
  65. console.warn( 'THREE.ExtrudeBufferGeometry has been renamed to THREE.ExtrudeGeometry.' );
  66. super( shapes, options );
  67. }
  68. }
  69. // r144
  70. export class IcosahedronBufferGeometry extends IcosahedronGeometry {
  71. constructor( radius, detail ) {
  72. console.warn( 'THREE.IcosahedronBufferGeometry has been renamed to THREE.IcosahedronGeometry.' );
  73. super( radius, detail );
  74. }
  75. }
  76. // r144
  77. export class LatheBufferGeometry extends LatheGeometry {
  78. constructor( points, segments, phiStart, phiLength ) {
  79. console.warn( 'THREE.LatheBufferGeometry has been renamed to THREE.LatheGeometry.' );
  80. super( points, segments, phiStart, phiLength );
  81. }
  82. }
  83. // r144
  84. export class OctahedronBufferGeometry extends OctahedronGeometry {
  85. constructor( radius, detail ) {
  86. console.warn( 'THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry.' );
  87. super( radius, detail );
  88. }
  89. }
  90. // r144
  91. export class PlaneBufferGeometry extends PlaneGeometry {
  92. constructor( width, height, widthSegments, heightSegments ) {
  93. console.warn( 'THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry.' );
  94. super( width, height, widthSegments, heightSegments );
  95. }
  96. }
  97. // r144
  98. export class PolyhedronBufferGeometry extends PolyhedronGeometry {
  99. constructor( vertices, indices, radius, detail ) {
  100. console.warn( 'THREE.PolyhedronBufferGeometry has been renamed to THREE.PolyhedronGeometry.' );
  101. super( vertices, indices, radius, detail );
  102. }
  103. }
  104. // r144
  105. export class RingBufferGeometry extends RingGeometry {
  106. constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
  107. console.warn( 'THREE.RingBufferGeometry has been renamed to THREE.RingGeometry.' );
  108. super( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength );
  109. }
  110. }
  111. // r144
  112. export class ShapeBufferGeometry extends ShapeGeometry {
  113. constructor( shapes, curveSegments ) {
  114. console.warn( 'THREE.ShapeBufferGeometry has been renamed to THREE.ShapeGeometry.' );
  115. super( shapes, curveSegments );
  116. }
  117. }
  118. // r144
  119. export class SphereBufferGeometry extends SphereGeometry {
  120. constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
  121. console.warn( 'THREE.SphereBufferGeometry has been renamed to THREE.SphereGeometry.' );
  122. super( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength );
  123. }
  124. }
  125. // r144
  126. export class TetrahedronBufferGeometry extends TetrahedronGeometry {
  127. constructor( radius, detail ) {
  128. console.warn( 'THREE.TetrahedronBufferGeometry has been renamed to THREE.TetrahedronGeometry.' );
  129. super( radius, detail );
  130. }
  131. }
  132. // r144
  133. export class TorusBufferGeometry extends TorusGeometry {
  134. constructor( radius, tube, radialSegments, tubularSegments, arc ) {
  135. console.warn( 'THREE.TorusBufferGeometry has been renamed to THREE.TorusGeometry.' );
  136. super( radius, tube, radialSegments, tubularSegments, arc );
  137. }
  138. }
  139. // r144
  140. export class TorusKnotBufferGeometry extends TorusKnotGeometry {
  141. constructor( radius, tube, tubularSegments, radialSegments, p, q ) {
  142. console.warn( 'THREE.TorusKnotBufferGeometry has been renamed to THREE.TorusKnotGeometry.' );
  143. super( radius, tube, tubularSegments, radialSegments, p, q );
  144. }
  145. }
  146. // r144
  147. export class TubeBufferGeometry extends TubeGeometry {
  148. constructor( path, tubularSegments, radius, radialSegments, closed ) {
  149. console.warn( 'THREE.TubeBufferGeometry has been renamed to THREE.TubeGeometry.' );
  150. super( path, tubularSegments, radius, radialSegments, closed );
  151. }
  152. }
粤ICP备19079148号