aecgeeks / bimsurfer2 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Interesting, the following files do not exist on the file folder:
../bimsurfer/src/threeViewer/three.js
etc.
<script type="text/javascript" src="../bimsurfer/src/threeViewer/OrbitControls.js"></script>
<script type="text/javascript" src="../bimsurfer/src/threeViewer/GLTFLoader.js"></script>
So I am not sure if anyone were able to run the gltf.html file on a web browser.
http://localhost/examples/gltf.html
I got can not find three.js file javascript error. Now even after I copied the three.js and other js files from ../bimsurfer/lib folder over to ../bimsurfer/src/threeViewer folder, I still get "Three not defined"
error.
OrbitControls.js:16 Uncaught ReferenceError: THREE is not defined
at OrbitControls.js:16
(anonymous) @ OrbitControls.js:16
GLTFLoader.js:9 Uncaught ReferenceError: THREE is not defined
at GLTFLoader.js:9
Hallo,
I work on a project in witch wie extract data from an Ifc file to convert it for our Customer. But we would like to implement a solution to not only extract this data but also to manipulate it in the preview.
What are you're thought on this is. Would it fit in to this project?
I just found another error which I don't know how to deal with:
What I want to do:
My aim is to use the BIMSurfer2 inside an web application to visualize IFC Models from BimServer and show specific elements of the IFC to users. I decided for BIMSurfer2 because of the API, which is not provided in the current release of BIMSurfer3 (which is placed here, right?: https://github.com/opensourceBIM/BIMsurfer).
My Setup:
latest BimServer release: 1.5.182
latest BimSurfer2 release: bimsurfer-0.0.64
I integrated the inbuild Schependomlaan buidling and the FZK-Haus IFC4 (http://www.ifcwiki.org/index.php?title=KIT_IFC_Examples). In the BimVie.ws plugin I can load both buildings without errors. When using BimSurfer2 (after dealing with the issues I showed in my other issue) I get the following errors.
For Schependomlaan I get 44 times the error:
uncaught (in promise) ReferenceError: exec_statement is not defined
at bimserver.html?address=http%3A%2F%2Flocalhost%3A8082%2F&token=fbfbfbe998a305b0c3e9f9d396575fd593beba3ca9ca9573a54ae22973ec7a9ebb84baced4ecbc40b9fa263b62ce35e1&poid=196609:161
at Array.forEach (<anonymous>)
at bimserver.html?address=http%3A%2F%2Flocalhost%3A8082%2F&token=fbfbfbe998a305b0c3e9f9d396575fd593beba3ca9ca9573a54ae22973ec7a9ebb84baced4ecbc40b9fa263b62ce35e1&poid=196609:142
raised by the code statement
exec_statement = "eval(document.getElementById(\"code"+i+"\").value)"
For FZK-Haus:
model.js:752 Class "IfcRelDecomposes" does not have the field "RelatedObjects"
The gltf models are showing without problems.
Do you have any ideas where these errors are coming from or how I can deal with them?
Thanks in advance.
We are running into an issue when converting our .ifc files into gltf. We used the following python script
IFCCONVERT = Path('./IfcConvert')
COLLADA = Path('./collada2gltf/COLLADA2GLTF-v2.1.5-windows-Release-x64/COLLADA2GLTF-bin')
GLTFPIPELINE = Path('./gltf-pipeline/bin/gltf-pipeline.js')
os.chdir(r'C:\Entwicklung\test\ifc2gltf')
def convert(ifc_file):
name = Path(ifc_file).stem
# for some reason gltf file needs double .gltf ending to be read by bimSurfer
cmd_convert0 = '{} --use-element-guids {path} {name}.xml'.format(IFCCONVERT, path=ifc_file, name=name)
cmd_convert1 = '{} --use-element-guids {path} {name}.dae'.format(IFCCONVERT, path=ifc_file, name=name)
cmd_convert2 = "{} -i {name}.dae -o {name}.gltf.gltf -v '1.0'".format(COLLADA, name=name) # -v '1.0'
for cmd in (cmd_convert0, cmd_convert1, cmd_convert2):
print(cmd)
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
for line in p.stdout.readlines():
if line:
print(line.replace(b'\x00', b'')) # DIRTY!
retval = p.wait()
print(retval)
which works fine but when trying to load the .gltf with bimsurfer the browser returns:
IfcConvert: 0.6.0 (Windows 64 bit)
Collada2Gltf: v.2.1.5
Are there any flags we have to set when converting to gltf? We tried gltf v1.0 and gltf v2.0
Thanks for this work on BimSurferV2.
I load my model with xml and glb files (generated by IfcConvert).
It works fine but when I select an object, the viewFit function does not exist (in threeViewer):
TypeError: viewer.viewFit is not a function
Thanks in advance.
JPLS
When trying to load data from a bimserver via your index.html example I get the javascript error:
index.html:27 Uncaught ReferenceError: BimServerClient is not defined
at loadFromBimserver (index.html:27)
at HTMLButtonElement.loadProjectsBtn.onclick (index.html:140)
Due to line 27 where
var client = new BimServerClient(address);
is assigned and the BimServerClient is not declared. I tried to find the defintion of the BimServerClient but didn't fiend anything. Could you point me to the right files? Thanks in advance!
I'm using your latest commit 4 days ago: 3a0a6c9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.