초기 PM 소스 전체 업로드
This commit is contained in:
commit
4e33c9a02a
1769 files changed
+377797
No files matched your search
@@ -0,0 +1,2 @@
|
||||
(()=>{"use strict";var e,t={314:(e,t,n)=>{var a=n(437),o=n(38),l=n(697),d=n(878),r=(n(6),n(231));let i;async function s(e){const t=document.getElementById("full-screen"),n=new o.XF,s=n.get(o.RA),c=n.get(o.mg);i=c.create(),i.scene=new o.VS(n),i.renderer=new l.Hs(n,t),i.camera=new o.us(n),i.camera.controls._camera.near=.1,i.camera.controls._camera.far=1e4,i.camera.controls._camera.updateProjectionMatrix(),i.scene.setup(),i.renderer.postproduction.enabled=!0,n.init();const u=(new r.Y).setPath("./textures/"),[m]=await Promise.all([u.loadAsync("demonstration-research-center.hdr")]);m.mapping=a.wfO,i.scene.three.background=m,i.scene.three.backgroundBlurriness=.9,i.scene.three.environment=m;const{postproduction:p}=i.renderer;p.enabled=!0;const v=p.n8ao.configuration;p.setPasses({ao:!0}),v.halfRes=!0;const h=n.get(o.HB),g=n.get(o.Yd);await g.setup();const b=new d.IfcAPI;b.SetWasmPath("./wasm/",!0),await b.Init();const f=[d.IFCTENDONANCHOR,d.IFCREINFORCINGBAR,d.IFCREINFORCINGELEMENT];for(const e of f)g.settings.excludedCategories.add(e);let E,y,I;g.settings.webIfc.COORDINATE_TO_ORIGIN=!0;let S=document.getElementById("progress-text");!async function(e){const t=new FileReader;t.onprogress=t=>{if(t.lengthComputable){const n=t.loaded/t.total*100;S.textContent=`<DownLoad-reader> File Size: ${(e.size/1048576).toFixed(2)}MB | ${n.toFixed(2)}%`}},t.onload=async t=>{S.textContent=`<Reading File> File Size: ${(e.size/1048576).toFixed(2)} MB`,S.innerHTML+='<span class="loader"></span>';const a=new Uint8Array(t.target.result);E=await g.load(a),i.scene.three.add(E),document.getElementById("schema").textContent=E.ifcMetadata.schema,document.getElementById("schema").style.background="#6944F0",document.getElementById("file-name").textContent=e.name.replace(/\.[^/.]+$/,"")+".ifc",y=b.OpenModel(a);const l=n.get(o.bX);l.add(E);const d=l.getMesh();l.reset(),i.camera.controls.fitToSphere(d,!0),I=n.get(o.$O),await I.process(E),await async function(){if(!h.groups.size)return;const e=Array.from(h.groups.values())[0];L=e.getLocalProperties()}(),await async function(){w=I.serializeAllRelations(),N=JSON.parse(w),A=Object.values(N)[0]}(),function(){const e=Number(Object.keys(A)[0]),t=document.querySelector(".tree-container");t.style.cssText="margin-top: 14px";const n=document.createElement("ul");n.className="tree",t.appendChild(n),M(n,e)}(),document.querySelector(".progress-wrap").style.display="none"},t.readAsArrayBuffer(e)}(e);const C=n.get(l.MD);C.setup({world:i}),C.zoomToSelection=!0;const T=n.get(l.TF);T.world=i,T.enabled=!0,T.create("example",new a.V9B({color:12382500,transparent:!0,opacity:.5})),C.events.select.onHighlight.add(e=>{const t=Object.values(e)[0];t&&(t.forEach(async e=>{await async function(e,t){document.querySelector(".right").classList.add("show-right"),document.querySelector(".right-conts").innerHTML="";const n=await e.getProperties(Number(t));if(n){const e=`\n <div class="accordion">\n <div class="accordion-header">\n <button type="button" class="btn-accordion" aria-expanded="true" aria-controls="Attributes">\n Attributes\n </button>\n </div>\n <div class="accordion-collapse collapse" id="Attributes" aria-hidden="false">\n <div class="accordion-body">\n \x3c!-- <dl>\n <dt>Class</dt>\n <dd>${n?.constructor?.name}</dd>\n </dl>\n <dl>\n <dt>Global Id</dt>\n <dd>${n?.GlobalId?.value}</dd>\n </dl> --\x3e\n </div>\n </div>\n </div>\n `;document.querySelector(".right-conts").innerHTML+=e;const t=document.getElementById("Attributes").children[0],a=[{label:"Class",value:n?.constructor?.name},{label:"Global Id",value:n?.GlobalId?.value},{label:"Name",value:n?.Name?.value},{label:"Object Type",value:n?.ObjectType?.value},{label:"Tag",value:n?.Tag?.value},{label:"Pre-Defined Type",value:n?.PredefinedType?.value}];t.innerHTML+=a.filter(e=>e.value).map(e=>`\n <dl>\n <dt>${e.label}</dt>\n <dd>${e.value}</dd>\n </dl>\n `).join(""),a.filter(e=>e.value).map(e=>{})}const a=I.getEntityRelations(e,Number(t),"IsDefinedBy");if(a.length){const t='\n <div class="accordion">\n <div class="accordion-header">\n <button type="button" class="btn-accordion" aria-expanded="true" aria-controls="PropertySets">\n Property Sets\n </button>\n </div>\n <div class="accordion-collapse collapse" id="PropertySets" aria-hidden="false">\n <dLine truncated
|
||||
//# sourceMappingURL=bundle.f1f097cba5dc7baf1c3c.js.map
|
||||
Reference in new issue
Block a user