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

IFC4: Serialization of twodimensional arrays #11

Closed
hlg opened this issue Feb 28, 2018 · 0 comments
Closed

IFC4: Serialization of twodimensional arrays #11

hlg opened this issue Feb 28, 2018 · 0 comments

Comments

@hlg
Copy link
Member

hlg commented Feb 28, 2018

IFC STEP serialization of twodimensional arrays does not work as expected.

For example, consider the following original content:

#1=IFCCARTESIANPOINTLIST3D((
  (19.3515701293945,48.59228515625,-314.984222412109),
  (25.8476333618164,48.59228515625,-314.984222412109),
  (25.8476333618164,50.13427734375,-314.984222412109),
  ...
));
#2=IFCTRIANGULATEDFACESET(#1,$,$,((1,2,3),...);

The non-streaming serializer omits the arrays:

#1= IFCCARTESIANPOINTLIST3D(());
#2= IFCTRIANGULATEDFACESET(#1,(),.T.,(),());

The streaming serializer does not resolve the virtual objects and includes some internal type information:

#1= IFCCARTESIANPOINTLIST3D((
  ListOfIfcLengthMeasure List: [org.bimserver.shared.HashMapWrappedVirtualObject@37cdb1dd, org.bimserver.shared.HashMapWrappedVirtualObject@3012c72e, org.bimserver.shared.HashMapWrappedVirtualObject@7cb8a219],
  ListOfIfcLengthMeasure List: [org.bimserver.shared.HashMapWrappedVirtualObject@dca8d1b3, org.bimserver.shared.HashMapWrappedVirtualObject@3012c72e, org.bimserver.shared.HashMapWrappedVirtualObject@7cb8a219],
  ListOfIfcLengthMeasure List: [org.bimserver.shared.HashMapWrappedVirtualObject@dca8d1b3, org.bimserver.shared.HashMapWrappedVirtualObject@59aaeac1, org.bimserver.shared.HashMapWrappedVirtualObject@7cb8a219],
  ...
));
#2= IFCTRIANGULATEDFACESET(#1,(),$,(ListOfELong List: [1, 2, 3], ...);

The sample is from #7 (related issue, but regarding deserialization), here I used the file that does not cause deserialization issues: IfcTriangulatedFaceSet_IfcShapeRep.ifc.txt. Obviously, it is not possible to test serialization for the case where deserialization is broken.

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

1 participant