public void ZShapeProfileDefTest() { using (var m = XbimModel.CreateTemporaryModel()) { using (var txn = m.BeginTransaction()) { var prof = IfcModelBuilder.MakeZShapeProfileDef(m, 150, 90, 13, 20, 6, 3); var face = _xbimGeometryCreator.CreateFace(prof); double area = face.Area; Assert.IsTrue(face.Area > 0); m.ModelFactors.ProfileDefLevelOfDetail = 1; face = _xbimGeometryCreator.CreateFace(prof); //var w = new XbimOccWriter(); //w.Write(face, "d:\\xbim\\f"); Assert.IsTrue(face.Area > 0); Assert.IsTrue(face.OuterBound.Edges.Count == 12, "Incorrect edge count"); Assert.IsTrue(face.Area > area, "Detailed profile should be bigger than normal profile"); } } }