Hello, xBim team!
I'm using XBimShapeInstance to get geometry data of IfcProducts.
I use this code
XbimShapeGeometry geometry = m_3DMdlContext.ShapeGeometry(instance);
byte[] data = ((IXbimShapeGeometryData)geometry).ShapeData;
using (var stream = new MemoryStream(data))
{
using (var reader = new BinaryReader(stream))
{
var mesh = reader.ReadShapeTriangulation();
}
}
So I get only triangulated geometry. If IfcProduct has some IfcPolylines attached, I miss this data unfortunately.
Is there any way to get these IfcPolylines?
Hello, xBim team! I'm using XBimShapeInstance to get geometry data of IfcProducts. I use this code
So I get only triangulated geometry. If IfcProduct has some IfcPolylines attached, I miss this data unfortunately. Is there any way to get these IfcPolylines?
Thanks!