Three.Legacy.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. import { WebGLRenderTarget } from './renderers/WebGLRenderTarget.js';
  2. import { DataArrayTexture } from './textures/DataArrayTexture.js';
  3. import { Data3DTexture } from './textures/Data3DTexture.js';
  4. import { BoxGeometry } from './geometries/BoxGeometry.js';
  5. import { CapsuleGeometry } from './geometries/CapsuleGeometry.js';
  6. import { CircleGeometry } from './geometries/CircleGeometry.js';
  7. import { ConeGeometry } from './geometries/ConeGeometry.js';
  8. import { CylinderGeometry } from './geometries/CylinderGeometry.js';
  9. import { DodecahedronGeometry } from './geometries/DodecahedronGeometry.js';
  10. import { ExtrudeGeometry } from './geometries/ExtrudeGeometry.js';
  11. import { IcosahedronGeometry } from './geometries/IcosahedronGeometry.js';
  12. import { LatheGeometry } from './geometries/LatheGeometry.js';
  13. import { OctahedronGeometry } from './geometries/OctahedronGeometry.js';
  14. import { PlaneGeometry } from './geometries/PlaneGeometry.js';
  15. import { PolyhedronGeometry } from './geometries/PolyhedronGeometry.js';
  16. import { RingGeometry } from './geometries/RingGeometry.js';
  17. import { ShapeGeometry } from './geometries/ShapeGeometry.js';
  18. import { SphereGeometry } from './geometries/SphereGeometry.js';
  19. import { TetrahedronGeometry } from './geometries/TetrahedronGeometry.js';
  20. import { TorusGeometry } from './geometries/TorusGeometry.js';
  21. import { TorusKnotGeometry } from './geometries/TorusKnotGeometry.js';
  22. import { TubeGeometry } from './geometries/TubeGeometry.js';
  23. // r134, d65e0af06644fe5a84a6fc0e372f4318f95a04c0
  24. export function ImmediateRenderObject() {
  25. console.error( 'THREE.ImmediateRenderObject has been removed.' );
  26. }
  27. // r138, 48b05d3500acc084df50be9b4c90781ad9b8cb17
  28. export class WebGLMultisampleRenderTarget extends WebGLRenderTarget {
  29. constructor( width, height, options ) {
  30. console.error( 'THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the "samples" property to greater 0 to enable multisampling.' );
  31. super( width, height, options );
  32. this.samples = 4;
  33. }
  34. }
  35. // r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
  36. export class DataTexture2DArray extends DataArrayTexture {
  37. constructor( data, width, height, depth ) {
  38. console.warn( 'THREE.DataTexture2DArray has been renamed to DataArrayTexture.' );
  39. super( data, width, height, depth );
  40. }
  41. }
  42. // r138, f9cd9cab03b7b64244e304900a3a2eeaa3a588ce
  43. export class DataTexture3D extends Data3DTexture {
  44. constructor( data, width, height, depth ) {
  45. console.warn( 'THREE.DataTexture3D has been renamed to Data3DTexture.' );
  46. super( data, width, height, depth );
  47. }
  48. }
  49. // r144
  50. export class BoxBufferGeometry extends BoxGeometry {
  51. constructor( width, height, depth, widthSegments, heightSegments, depthSegments ) {
  52. console.warn( 'THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry.' );
  53. super( width, height, depth, widthSegments, heightSegments, depthSegments );
  54. }
  55. }
  56. // r144
  57. export class CapsuleBufferGeometry extends CapsuleGeometry {
  58. constructor( radius, length, capSegments, radialSegments ) {
  59. console.warn( 'THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry.' );
  60. super( radius, length, capSegments, radialSegments );
  61. }
  62. }
  63. // r144
  64. export class CircleBufferGeometry extends CircleGeometry {
  65. constructor( radius, segments, thetaStart, thetaLength ) {
  66. console.warn( 'THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry.' );
  67. super( radius, segments, thetaStart, thetaLength );
  68. }
  69. }
  70. // r144
  71. export class ConeBufferGeometry extends ConeGeometry {
  72. constructor( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
  73. console.warn( 'THREE.ConeBufferGeometry has been renamed to THREE.ConeGeometry.' );
  74. super( radius, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
  75. }
  76. }
  77. // r144
  78. export class CylinderBufferGeometry extends CylinderGeometry {
  79. constructor( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) {
  80. console.warn( 'THREE.CylinderBufferGeometry has been renamed to THREE.CylinderGeometry.' );
  81. super( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength );
  82. }
  83. }
  84. // r144
  85. export class DodecahedronBufferGeometry extends DodecahedronGeometry {
  86. constructor( radius, detail ) {
  87. console.warn( 'THREE.DodecahedronBufferGeometry has been renamed to THREE.DodecahedronGeometry.' );
  88. super( radius, detail );
  89. }
  90. }
  91. // r144
  92. export class ExtrudeBufferGeometry extends ExtrudeGeometry {
  93. constructor( shapes, options ) {
  94. console.warn( 'THREE.ExtrudeBufferGeometry has been renamed to THREE.ExtrudeGeometry.' );
  95. super( shapes, options );
  96. }
  97. }
  98. // r144
  99. export class IcosahedronBufferGeometry extends IcosahedronGeometry {
  100. constructor( radius, detail ) {
  101. console.warn( 'THREE.IcosahedronBufferGeometry has been renamed to THREE.IcosahedronGeometry.' );
  102. super( radius, detail );
  103. }
  104. }
  105. // r144
  106. export class LatheBufferGeometry extends LatheGeometry {
  107. constructor( points, segments, phiStart, phiLength ) {
  108. console.warn( 'THREE.LatheBufferGeometry has been renamed to THREE.LatheGeometry.' );
  109. super( points, segments, phiStart, phiLength );
  110. }
  111. }
  112. // r144
  113. export class OctahedronBufferGeometry extends OctahedronGeometry {
  114. constructor( radius, detail ) {
  115. console.warn( 'THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry.' );
  116. super( radius, detail );
  117. }
  118. }
  119. // r144
  120. export class PlaneBufferGeometry extends PlaneGeometry {
  121. constructor( width, height, widthSegments, heightSegments ) {
  122. console.warn( 'THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry.' );
  123. super( width, height, widthSegments, heightSegments );
  124. }
  125. }
  126. // r144
  127. export class PolyhedronBufferGeometry extends PolyhedronGeometry {
  128. constructor( vertices, indices, radius, detail ) {
  129. console.warn( 'THREE.PolyhedronBufferGeometry has been renamed to THREE.PolyhedronGeometry.' );
  130. super( vertices, indices, radius, detail );
  131. }
  132. }
  133. // r144
  134. export class RingBufferGeometry extends RingGeometry {
  135. constructor( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) {
  136. console.warn( 'THREE.RingBufferGeometry has been renamed to THREE.RingGeometry.' );
  137. super( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength );
  138. }
  139. }
  140. // r144
  141. export class ShapeBufferGeometry extends ShapeGeometry {
  142. constructor( shapes, curveSegments ) {
  143. console.warn( 'THREE.ShapeBufferGeometry has been renamed to THREE.ShapeGeometry.' );
  144. super( shapes, curveSegments );
  145. }
  146. }
  147. // r144
  148. export class SphereBufferGeometry extends SphereGeometry {
  149. constructor( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) {
  150. console.warn( 'THREE.SphereBufferGeometry has been renamed to THREE.SphereGeometry.' );
  151. super( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength );
  152. }
  153. }
  154. // r144
  155. export class TetrahedronBufferGeometry extends TetrahedronGeometry {
  156. constructor( radius, detail ) {
  157. console.warn( 'THREE.TetrahedronBufferGeometry has been renamed to THREE.TetrahedronGeometry.' );
  158. super( radius, detail );
  159. }
  160. }
  161. // r144
  162. export class TorusBufferGeometry extends TorusGeometry {
  163. constructor( radius, tube, radialSegments, tubularSegments, arc ) {
  164. console.warn( 'THREE.TorusBufferGeometry has been renamed to THREE.TorusGeometry.' );
  165. super( radius, tube, radialSegments, tubularSegments, arc );
  166. }
  167. }
  168. // r144
  169. export class TorusKnotBufferGeometry extends TorusKnotGeometry {
  170. constructor( radius, tube, tubularSegments, radialSegments, p, q ) {
  171. console.warn( 'THREE.TorusKnotBufferGeometry has been renamed to THREE.TorusKnotGeometry.' );
  172. super( radius, tube, tubularSegments, radialSegments, p, q );
  173. }
  174. }
  175. // r144
  176. export class TubeBufferGeometry extends TubeGeometry {
  177. constructor( path, tubularSegments, radius, radialSegments, closed ) {
  178. console.warn( 'THREE.TubeBufferGeometry has been renamed to THREE.TubeGeometry.' );
  179. super( path, tubularSegments, radius, radialSegments, closed );
  180. }
  181. }