Skip to content

[Bug]: IfcSweptDiskSolid imported with empty geometry (positions=[], indices=[]) #2075

Description

@johpil177

What happened?

Some IfcBuildingElementProxy elements exported from Cadwork are not rendered in ThatOpen Viewer.
The IFC elements are present in the model and can be queried successfully, but getItemsGeometry() returns empty geometry arrays:
positions: Float32Array []
indices: Uint16Array []
normals: Int16Array []
Later, when zooming into the affected area, Fragments throws:
Fragments: no indices provided to create the mesh
The same IFC file renders correctly in BIMVision.

Enviroment:
{ "@thatopen/components": "3.4.6",
"@thatopen/components-front": "3.4.3",
"@thatopen/fragments": "3.4.5",
"@thatopen/ui": "3.4.3",
"three": "0.182.0",
"web-ifc": "0.0.77"
}

Affected IFC Entity:
#79 = IFCBUILDINGELEMENTPROXY('0ZO3xo7PrDpgkZRgV9_I5R',#7,'TGA_E-Schlauch 20 schwarz','',$,#80,#85,$,
.NOTDEFINED.);

Geometry:
#86 = IFCSHAPEREPRESENTATION(#21,'Body','AdvancedSweptSolid',(#87));
#87 = IFCSWEPTDISKSOLID(#94,0.01, $,$,$);

#94 = IFCPOLYLINE((#88,#89,#90,#91,#92,#93));

The issue may be related to:
IfcSweptDiskSolid + IfcPolyline
while:
IfcSweptDiskSolid + IfcIndexedPolyCurve
works correctly.

Version

0.0.77

What browsers are you seeing the problem on?

Firefox

Relevant log output

Fragments: no indices provided to create the mesh

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions