I need to get the list of vertices of IfcWall object using XBIM. The code i need must look something like:
using (model)
{
List<ItemSet<IfcCartesianPoints>> loppsList = new List<ItemSet<IfcCartesianPoints>>();
var walls = model.Instances.OfType<IfcWall>();
foreach (var wall in walls)
{
loppsList.Add(wall. ... .Points);
}
}
But i have no idea, how to get the proper way .
I tried the solution proposed here: IFC objects navigation to retrieve Wall coordinates
foreach (var wall in walls)
{
var line = wall.Representation.Representations[0].Items[0];
var _line = line as IfcPolyline;
loppsList.Add(_line.Points);
}
But i didn't get the proper data — maybe I just got lost in the path of attributes. Please help to navigate through the IfcWall attributes.