Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting exception if I will try to load ifc4 Model in bimserver 1.5.147 #11

Open
raviarsuda05 opened this issue Aug 2, 2019 · 4 comments

Comments

@raviarsuda05
Copy link

raviarsuda05 commented Aug 2, 2019

org.bimserver.plugins.serializers.SerializerException: org.bimserver.plugins.serializers.SerializerException: No geometry
	at org.bimserver.gltf.BinaryGltfSerializer2.write(BinaryGltfSerializer2.java:229)
	at org.bimserver.plugins.serializers.EmfSerializer.writeToOutputStream(EmfSerializer.java:104)
	at org.bimserver.plugins.serializers.EmfSerializerDataSource.writeToOutputStream(EmfSerializerDataSource.java:60)
	at org.bimserver.plugins.serializers.CacheStoringEmfSerializerDataSource.writeToOutputStream(CacheStoringEmfSerializerDataSource.java:37)
	at org.bimserver.servlets.DownloadServlet.processDataSource(DownloadServlet.java:288)
	at org.bimserver.servlets.DownloadServlet.service(DownloadServlet.java:249)
	at org.bimserver.servlets.RootServlet.service(RootServlet.java:155)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.bimserver.plugins.serializers.SerializerException: No geometry
	at org.bimserver.gltf.BinaryGltfSerializer2.generateSceneAndBody(BinaryGltfSerializer2.java:308)
	at org.bimserver.gltf.BinaryGltfSerializer2.write(BinaryGltfSerializer2.java:212)
	... 29 more
@rubendel
Copy link
Member

rubendel commented Aug 2, 2019

Looks like there is no geometry... Any errors while checking in the file? Does it visualize in BIMvie.ws? Can you try the latest release?

@raviarsuda05
Copy link
Author

no any error while checking. getting error while try to load glb format file

@raviarsuda05
Copy link
Author

raviarsuda05 commented Aug 3, 2019

it Does not visualize in BIMvie.ws.

@hlg
Copy link
Member

hlg commented Nov 14, 2024

The Gltf plugins only support IFC2x3. They assume IFC2x3 and use the IFC2x3 classes directly - here and here. The plugins declare their assumptions and requirements here and here. With these declarations, the BIMserver converts any IFC4 project data to IFC2x3 as requested, before passing it to the plugin. IFC2x3 project data is passed without conversion.

The schema converter to IFC2x3 does not copy geometry: AbstractSchemaConverter.java#L58-L60.

One option would be to include geometry in the schema converter, but then, other improvements would be needed as well, such as treating the changes with IfcTypeObject, e.g. IfcDoorStyle replaced by IfcDoorType. It is not clear whether everything can be properly converted and so the geometry and converted IFC might fall out of sync.

As an alternative, the plugin can be changed to cover multiple schema versions, but this must be implemented for every plugin then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants