MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / We

Function We

assets/js/space-wrap.js:17–17  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

15!1}function H(a,b,c){if(Array.isArray(a))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="";this.array=a;this.itemSize=b;this.count=void 0!==a?a.length/b:0;this.normalized=!0===c;this.dynamic=!1;this.updateRange={offset:0,count:-1};this.version=0}function Ac(a,b,c){H.call(this,new Int8Array(a),b,c)}function Bc(a,b,c){H.call(this,new Uint8Array(a),b,c)}function Cc(a,b,c){H.call(this,new Uint8ClampedArray(a),b,c)}function Dc(a,b,c){H.call(this,new Int16Array(a),
16b,c)}function ub(a,b,c){H.call(this,new Uint16Array(a),b,c)}function Ec(a,b,c){H.call(this,new Int32Array(a),b,c)}function vb(a,b,c){H.call(this,new Uint32Array(a),b,c)}function E(a,b,c){H.call(this,new Float32Array(a),b,c)}function Fc(a,b,c){H.call(this,new Float64Array(a),b,c)}function Ve(){this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=
17this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function We(a){if(0===a.length)return-Infinity;for(var b=a[0],c=1,d=a.length;c<d;++c)a[c]>b&&(b=a[c]);return b}function B(){Object.defineProperty(this,"id",{value:bg+=2});this.uuid=O.generateUUID();this.name="";this.type="BufferGeometry";this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;this.drawRange={start:0,count:Infinity};this.userData={}}
18function Tb(a,b,c,d,e,f){K.call(this);this.type="BoxGeometry";this.parameters={width:a,height:b,depth:c,widthSegments:d,heightSegments:e,depthSegments:f};this.fromBufferGeometry(new wb(a,b,c,d,e,f));this.mergeVertices()}function wb(a,b,c,d,e,f){function g(a,b,c,d,e,f,g,k,ua,pa,I){var r=f/ua,u=g/pa,w=f/2,y=g/2,z=k/2;g=ua+1;var G=pa+1,ha=f=0,S,x,F=new n;for(x=0;x<G;x++){var C=x*u-y;for(S=0;S<g;S++)F[a]=(S*r-w)*d,F[b]=C*e,F[c]=z,m.push(F.x,F.y,F.z),F[a]=0,F[b]=0,F[c]=0<k?1:-1,q.push(F.x,F.y,F.z),p.push(S/
19ua),p.push(1-x/pa),f+=1}for(x=0;x<pa;x++)for(S=0;S<ua;S++)a=v+S+g*(x+1),b=v+(S+1)+g*(x+1),c=v+(S+1)+g*x,l.push(v+S+g*x,a,c),l.push(a,b,c),ha+=6;h.addGroup(t,ha,I);t+=ha;v+=f}B.call(this);this.type="BoxBufferGeometry";this.parameters={width:a,height:b,depth:c,widthSegments:d,heightSegments:e,depthSegments:f};var h=this;a=a||1;b=b||1;c=c||1;d=Math.floor(d)||1;e=Math.floor(e)||1;f=Math.floor(f)||1;var l=[],m=[],q=[],p=[],v=0,t=0;g("z","y","x",-1,-1,c,b,a,f,e,0);g("z","y","x",1,-1,c,b,-a,f,e,1);g("x",
20"z","y",1,1,a,c,b,d,f,2);g("x","z","y",1,-1,a,c,-b,d,f,3);g("x","y","z",1,-1,a,b,c,d,e,4);g("x","y","z",-1,-1,a,b,-c,d,e,5);this.setIndex(l);this.addAttribute("position",new E(m,3));this.addAttribute("normal",new E(q,3));this.addAttribute("uv",new E(p,2))}function Gc(a,b,c,d){K.call(this);this.type="PlaneGeometry";this.parameters={width:a,height:b,widthSegments:c,heightSegments:d};this.fromBufferGeometry(new yb(a,b,c,d));this.mergeVertices()}function yb(a,b,c,d){B.call(this);this.type="PlaneBufferGeometry";

Callers 2

igFunction · 0.70
space-wrap.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected