x_ite 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +4 -4
  2. package/dist/LICENSE.md +4 -0
  3. package/dist/assets/components/{Annotation.js → AnnotationComponent.js} +138 -260
  4. package/dist/assets/components/AnnotationComponent.min.js +2 -0
  5. package/dist/assets/components/{CADGeometry.js → CADGeometryComponent.js} +177 -299
  6. package/dist/assets/components/CADGeometryComponent.min.js +2 -0
  7. package/dist/assets/components/{CubeMapTexturing.js → CubeMapTexturingComponent.js} +204 -255
  8. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -0
  9. package/dist/assets/components/DISComponent.js +994 -0
  10. package/dist/assets/components/DISComponent.min.js +2 -0
  11. package/dist/assets/components/{EventUtilities.js → EventUtilitiesComponent.js} +121 -274
  12. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -0
  13. package/dist/assets/components/{Geometry2D.js → Geometry2DComponent.js} +202 -356
  14. package/dist/assets/components/Geometry2DComponent.min.js +2 -0
  15. package/dist/assets/components/{Geospatial.js → GeospatialComponent.js} +449 -676
  16. package/dist/assets/components/GeospatialComponent.min.js +2 -0
  17. package/dist/assets/components/{HAnim.js → HAnimComponent.js} +277 -387
  18. package/dist/assets/components/HAnimComponent.min.js +2 -0
  19. package/dist/assets/components/{KeyDeviceSensor.js → KeyDeviceSensorComponent.js} +71 -114
  20. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -0
  21. package/dist/assets/components/{Layout.js → LayoutComponent.js} +234 -339
  22. package/dist/assets/components/LayoutComponent.min.js +2 -0
  23. package/dist/assets/components/{NURBS.js → NURBSComponent.js} +349 -652
  24. package/dist/assets/components/NURBSComponent.min.js +2 -0
  25. package/dist/assets/components/{ParticleSystems.js → ParticleSystemsComponent.js} +345 -674
  26. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -0
  27. package/dist/assets/components/{Picking.js → PickingComponent.js} +245 -472
  28. package/dist/assets/components/PickingComponent.min.js +2 -0
  29. package/dist/assets/components/{RigidBodyPhysics.js → RigidBodyPhysicsComponent.js} +496 -804
  30. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -0
  31. package/dist/assets/components/ScriptingComponent.js +899 -0
  32. package/dist/assets/components/ScriptingComponent.min.js +2 -0
  33. package/dist/assets/components/{Text.js → TextComponent.js} +200 -250
  34. package/dist/assets/components/TextComponent.min.js +2 -0
  35. package/dist/assets/components/{TextureProjection.js → TextureProjectionComponent.js} +144 -190
  36. package/dist/assets/components/TextureProjectionComponent.min.js +2 -0
  37. package/dist/assets/components/{Texturing3D.js → Texturing3DComponent.js} +223 -385
  38. package/dist/assets/components/Texturing3DComponent.min.js +2 -0
  39. package/dist/assets/components/{VolumeRendering.js → VolumeRenderingComponent.js} +316 -603
  40. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -0
  41. package/dist/assets/components/{X_ITE.js → X_ITEComponent.js} +301 -599
  42. package/dist/assets/components/X_ITEComponent.min.js +2 -0
  43. package/dist/assets/images/XR.svg +74 -0
  44. package/dist/example.html +1 -1
  45. package/dist/x_ite.css +1 -1
  46. package/dist/x_ite.d.ts +68 -11
  47. package/dist/x_ite.js +2768 -5722
  48. package/dist/x_ite.min.js +2 -1
  49. package/dist/x_ite.min.mjs +2 -1
  50. package/dist/x_ite.mjs +2768 -5722
  51. package/dist/x_ite.zip +0 -0
  52. package/package.json +7 -5
  53. package/dist/assets/components/Annotation.min.js +0 -1
  54. package/dist/assets/components/CADGeometry.min.js +0 -1
  55. package/dist/assets/components/CubeMapTexturing.min.js +0 -1
  56. package/dist/assets/components/DIS.js +0 -1104
  57. package/dist/assets/components/DIS.min.js +0 -1
  58. package/dist/assets/components/EventUtilities.min.js +0 -1
  59. package/dist/assets/components/Geometry2D.min.js +0 -1
  60. package/dist/assets/components/Geospatial.min.js +0 -1
  61. package/dist/assets/components/HAnim.min.js +0 -1
  62. package/dist/assets/components/KeyDeviceSensor.min.js +0 -1
  63. package/dist/assets/components/Layout.min.js +0 -1
  64. package/dist/assets/components/NURBS.min.js +0 -1
  65. package/dist/assets/components/ParticleSystems.min.js +0 -1
  66. package/dist/assets/components/Picking.min.js +0 -1
  67. package/dist/assets/components/RigidBodyPhysics.min.js +0 -1
  68. package/dist/assets/components/Scripting.js +0 -927
  69. package/dist/assets/components/Scripting.min.js +0 -1
  70. package/dist/assets/components/Text.min.js +0 -1
  71. package/dist/assets/components/TextureProjection.min.js +0 -1
  72. package/dist/assets/components/Texturing3D.min.js +0 -1
  73. package/dist/assets/components/VolumeRendering.min.js +0 -1
  74. package/dist/assets/components/X_ITE.min.js +0 -1
@@ -0,0 +1,2 @@
1
+ /* X_ITE v10.3.0 */
2
+ const e=window[Symbol.for("X_ITE.X3D-10.3.0")];(()=>{var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=e.Components;var s=t.n(i);const n=e.X3DBaseNode;var o=t.n(n);const r=e.X3DConstants;var a=t.n(r);const l=e.Fields;var h=t.n(l);const c=e.Namespace;var g=t.n(c);function p(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(p.prototype,o().prototype),Object.defineProperties(p,{typeName:{value:"Arc2DOptions",enumerable:!0}});const d=p,u=g().add("Arc2DOptions",d);function y(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(y.prototype,o().prototype),Object.defineProperties(y,{typeName:{value:"ArcClose2DOptions",enumerable:!0}});const m=y,O=g().add("ArcClose2DOptions",m),D=e.X3DGeometryNode;var w=t.n(D);const f=e.Complex;var b=t.n(f);function _(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.vertices=w().createArray()}Object.assign(Object.setPrototypeOf(_.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getVertices(){return this.vertices.length||this.build(),this.vertices},build(){const e=this._dimension.getValue(),t=2*Math.PI/e,i=this.vertices;for(let s=0;s<e;++s){const e=b().Polar(1,t*s),n=b().Polar(1,t*(s+1));i.push(e.real,e.imag,0,1),i.push(n.real,n.imag,0,1)}i.shrinkToFit()},eventsProcessed(){this.vertices.length=0}}),Object.defineProperties(_,{typeName:{value:"Circle2DOptions",enumerable:!0}});const v=_,P=g().add("Circle2DOptions",v);function V(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.circleVertices=w().createArray(),this.diskTexCoords=w().createArray(),this.diskNormals=w().createArray(),this.diskVertices=w().createArray()}Object.assign(Object.setPrototypeOf(V.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getCircleVertices(){return this.circleVertices.length||this.build(),this.circleVertices},getDiskTexCoords(){return this.diskTexCoords.length||this.build(),this.diskTexCoords},getDiskNormals(){return this.diskNormals.length||this.build(),this.diskNormals},getDiskVertices(){return this.diskVertices.length||this.build(),this.diskVertices},build:(()=>{const e=new(b())(.5,.5),t=new(b()),i=new(b()),s=new(b()),n=new(b());return function(){const o=this._dimension.getValue(),r=2*Math.PI/o,a=this.circleVertices,l=this.diskTexCoords,h=this.diskNormals,c=this.diskVertices;for(let g=0;g<o;++g){const o=r*g,p=r*(g+1);t.setPolar(.5,o).add(e),i.setPolar(.5,p).add(e),s.setPolar(1,o),n.setPolar(1,p),a.push(s.real,s.imag,0,1),a.push(n.real,n.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),c.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),h.shrinkToFit(),c.shrinkToFit()}})(),eventsProcessed(){this.circleVertices.length=0,this.diskTexCoords.length=0,this.diskNormals.length=0,this.diskVertices.length=0}}),Object.defineProperties(V,{typeName:{value:"Disk2DOptions",enumerable:!0}});const C=V,M=g().add("Disk2DOptions",C),S=e.IndexedFaceSet;var T=t.n(S);const A=e.Coordinate;var x=t.n(A);const F=e.TextureCoordinate;var j=t.n(F);function k(e){o().call(this,e)}Object.assign(Object.setPrototypeOf(k.prototype,o().prototype),{getGeometry(){if(this.geometry)return this.geometry;this.geometry=new(T())(this.getExecutionContext()),this.geometry._texCoord=new(j())(this.getExecutionContext()),this.geometry._coord=new(x())(this.getExecutionContext());const e=this.geometry,t=this.geometry._texCoord.getValue(),i=this.geometry._coord.getValue();return t._point=[1,1,0,1,0,0,1,0],i._point=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],e._coordIndex=[0,1,2,3,-1],t.setup(),i.setup(),e.setup(),this.geometry}}),Object.defineProperties(k,{typeName:{value:"Rectangle2DOptions",enumerable:!0}});const N=k,I=g().add("Rectangle2DOptions",N),B=e.PrimitiveQuality;var G=t.n(B);function R(){}function z(e,t){const i=new t(this.getPrivateScene());return i.setup(),this[e]=function(){return i},Object.defineProperty(this,e,{enumerable:!1}),i}Object.assign(R.prototype,{initialize(){this.setPrimitiveQuality2D(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions(){return z.call(this,"getArc2DOptions",u)},getArcClose2DOptions(){return z.call(this,"getArcClose2DOptions",O)},getCircle2DOptions(){return z.call(this,"getCircle2DOptions",P)},getDisk2DOptions(){return z.call(this,"getDisk2DOptions",M)},getRectangle2DOptions(){return z.call(this,"getRectangle2DOptions",I)},setPrimitiveQuality2D(e){const t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),s=this.getCircle2DOptions(),n=this.getDisk2DOptions();switch(e){case G().LOW:t._dimension=20,i._dimension=20,s._dimension=20,n._dimension=20;break;case G().MEDIUM:t._dimension=40,i._dimension=40,s._dimension=40,n._dimension=40;break;case G().HIGH:t._dimension=80,i._dimension=80,s._dimension=80,n._dimension=80}}});const U=R,L=g().add("X3DGeometry2DContext",U),X=e.X3DFieldDefinition;var q=t.n(X);const E=e.FieldDefinitionArray;var Q=t.n(E);const H=e.X3DNode;var W=t.n(H);const J=e.X3DLineGeometryNode;var K=t.n(J);const Y=e.Algorithm;var Z=t.n(Y);function $(e){K().call(this,e),this.addType(a().Arc2D),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf($.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArc2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build(){const e=this.getBrowser().getArc2DOptions()._dimension.getValue(),t=this._startAngle.getValue(),i=Math.abs(this._radius.getValue()),s=this.getSweepAngle(),n=Math.max(3,Math.floor(s*e/(2*Math.PI))),o=this.getVertices();for(let e=0;e<n;++e){const r=t+s*(e/n),a=b().Polar(i,r),l=t+s*((e+1)/n),h=b().Polar(i,l);o.push(a.real,a.imag,0,1),o.push(h.real,h.imag,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties($,{...W().getStaticProperties("Arc2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const ee=$,te=g().add("Arc2D",ee);function ie(e){w().call(this,e),this.addType(a().ArcClose2D),this.setGeometryType(2),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(ie.prototype,w().prototype),{set_live__(){w().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArcClose2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:(()=>{const e=new(b())(.5,.5);return function(){const t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this._closureType.getValue(),s=t._dimension.getValue(),n=this._startAngle.getValue(),o=Math.abs(this._radius.getValue()),r=this.getSweepAngle(),a=Math.max(4,Math.floor(r*s/(2*Math.PI))),l=this.getTexCoords(),h=this.getNormals(),c=this.getVertices(),g=[],p=[];this.getMultiTexCoords().push(l);const d=a-1;for(let t=0;t<a;++t){const i=n+r*(t/d);g.push(b().Polar(.5,i).add(e)),p.push(b().Polar(o,i))}if(i){const e=g[0],t=p[0];for(let i=1;i<d;++i){const s=g[i],n=g[i+1],o=p[i],r=p[i+1];l.push(e.real,e.imag,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),c.push(t.real,t.imag,0,1,o.real,o.imag,0,1,r.real,r.imag,0,1)}}else for(let e=0;e<d;++e){const t=g[e],i=g[e+1],s=p[e],n=p[e+1];l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),c.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(ie,{...W().getStaticProperties("ArcClose2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"closureType",new(h().SFString)("PIE")),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const se=ie,ne=g().add("ArcClose2D",se);function oe(e){K().call(this,e),this.addType(a().Circle2D),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(oe.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getCircle2DOptions().addInterest("requestRebuild",this):this.getBrowser().getCircle2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this._radius.getValue();if(1===i)this.setVertices(e.getVertices());else{const s=e.getVertices().getValue();for(let e=0,n=s.length;e<n;e+=4)t.push(s[e]*i,s[e+1]*i,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties(oe,{...W().getStaticProperties("Circle2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const re=oe,ae=g().add("Circle2D",re),le=e.X3DPointGeometryNode;var he=t.n(le);function ce(e){K().call(this,e),this.addType(a().Disk2D),this._innerRadius.setUnit("length"),this._outerRadius.setUnit("length")}Object.assign(Object.setPrototypeOf(ce.prototype,w().prototype),{initialize(){w().prototype.initialize.call(this)},set_live__(){w().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getDisk2DOptions().addInterest("requestRebuild",this):this.getBrowser().getDisk2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser(),t=e.getContext(),i=e.getDisk2DOptions(),s=Math.min(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),n=Math.max(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue()));if(s===n){const e=this.getVertices();if(0===n)return e.push(0,0,0,1),this.getMin().set(0,0,0),this.getMax().set(0,0,0),this.setGeometryType(0),this.setPrimitiveMode(t.POINTS),this.setTransparent(!0),void this.setBase(he());if(1===n)this.setVertices(i.getCircleVertices());else{const t=i.getCircleVertices().getValue();for(let i=0,s=t.length;i<s;i+=4)e.push(t[i]*n,t[i+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(1),this.setPrimitiveMode(t.LINES),this.setTransparent(!1),void this.setBase(K())}if(0===s){if(this.getMultiTexCoords().push(i.getDiskTexCoords()),this.setNormals(i.getDiskNormals()),1===n)this.setVertices(i.getDiskVertices());else{const e=i.getDiskVertices().getValue(),t=this.getVertices();for(let i=0,s=e.length;i<s;i+=4)t.push(e[i]*n,e[i+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),void this.setBase(w())}const o=s/n,r=(1-o)/2,a=i.getDiskTexCoords().getValue(),l=i.getDiskVertices().getValue(),h=this.getTexCoords(),c=this.getNormals(),g=this.getVertices();this.getMultiTexCoords().push(h);for(let e=0,t=l.length;e<t;e+=12)h.push(a[e+4]*o+r,a[e+5]*o+r,0,1,a[e+4],a[e+5],0,1,a[e+8],a[e+9],0,1,a[e+4]*o+r,a[e+5]*o+r,0,1,a[e+8],a[e+9],0,1,a[e+8]*o+r,a[e+9]*o+r,0,1),c.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),g.push(l[e+4]*s,l[e+5]*s,0,1,l[e+4]*n,l[e+5]*n,0,1,l[e+8]*n,l[e+9]*n,0,1,l[e+4]*s,l[e+5]*s,0,1,l[e+8]*n,l[e+9]*n,0,1,l[e+8]*s,l[e+9]*s,0,1);this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),this.setBase(w())},setBase(e){this.intersectsLine=e.prototype.intersectsLine,this.intersectsBox=e.prototype.intersectsBox,this.generateTexCoords=e.prototype.generateTexCoords,this.displaySimple=e.prototype.displaySimple,this.display=e.prototype.display,this.displaySimpleInstanced=e.prototype.displaySimpleInstanced,this.displayInstanced=e.prototype.displayInstanced},updateRenderFunctions(){}}),Object.defineProperties(ce,{...W().getStaticProperties("Disk2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"innerRadius",new(h().SFFloat)),new(q())(a().initializeOnly,"outerRadius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const ge=ce,pe=g().add("Disk2D",ge);function de(e){K().call(this,e),this.addType(a().Polyline2D),this._lineSegments.setUnit("length")}Object.assign(Object.setPrototypeOf(de.prototype,K().prototype),{build(){const e=this._lineSegments.getValue(),t=this.getVertices();for(let i=0,s=2*(this._lineSegments.length-1);i<s;i+=2)t.push(e[i+0],e[i+1],0,1),t.push(e[i+2],e[i+3],0,1)}}),Object.defineProperties(de,{...W().getStaticProperties("Polyline2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"lineSegments",new(h().MFVec2f))]),enumerable:!0}});const ue=de,ye=g().add("Polyline2D",ue);function me(e){he().call(this,e),this.addType(a().Polypoint2D),this._point.setUnit("length")}Object.assign(Object.setPrototypeOf(me.prototype,he().prototype),{build(){const e=this._point.getValue(),t=this.getVertices();for(let i=0,s=2*this._point.length;i<s;i+=2)t.push(e[i],e[i+1],0,1)}}),Object.defineProperties(me,{...W().getStaticProperties("Polypoint2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"point",new(h().MFVec2f))]),enumerable:!0}});const Oe=me,De=g().add("Polypoint2D",Oe),we=e.Vector2;var fe=t.n(we);function be(e){w().call(this,e),this.addType(a().Rectangle2D),this.setGeometryType(2),this._size.setUnit("length")}Object.assign(Object.setPrototypeOf(be.prototype,w().prototype),{build:(()=>{const e=new(fe())(2,2);return function(){const t=this.getBrowser().getRectangle2DOptions().getGeometry(),i=this._size.getValue();if(this.setMultiTexCoords(t.getMultiTexCoords()),this.setTangents(t.getTangents()),this.setNormals(t.getNormals()),i.equals(e))this.setVertices(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{const e=Math.abs(i.x/2),s=Math.abs(i.y/2),n=t.getVertices().getValue(),o=this.getVertices();for(let t=0;t<n.length;t+=4)o.push(e*n[t],s*n[t+1],0,1);this.getMin().set(-e,-s,0),this.getMax().set(e,s,0)}this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(be,{...W().getStaticProperties("Rectangle2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"size",new(h().SFVec2f)(2,2)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const _e=be,ve=g().add("Rectangle2D",_e);function Pe(e){w().call(this,e),this.addType(a().TriangleSet2D),this.setGeometryType(2),this._vertices.setUnit("length")}Object.assign(Object.setPrototypeOf(Pe.prototype,w().prototype),{build(){const e=this._vertices.getValue(),t=this.getNormals(),i=this.getVertices();for(let s=0,n=2*this._vertices.length;s<n;s+=2)t.push(0,0,1),i.push(e[s],e[s+1],0,1);this.setSolid(this._solid.getValue())},generateTexCoords(){const e=this.getTexCoords();if(0===e.length){const t=this.getTexCoordParams(),i=t.min,s=t.Ssize,n=this.getVertices().getValue();for(let t=0,o=n.length;t<o;t+=4)e.push((n[t]-i[0])/s,(n[t+1]-i[1])/s,0,1);e.shrinkToFit()}this.getMultiTexCoords().push(e)}}),Object.defineProperties(Pe,{...W().getStaticProperties("TriangleSet2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"vertices",new(h().MFVec2f)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const Ve=Pe,Ce=g().add("TriangleSet2D",Ve);s().add({name:"Geometry2D",concreteNodes:[te,ne,ae,pe,ye,De,ve,Ce],abstractNodes:[],browserContext:L});g().add("Geometry2DComponent",undefined)})();