public IXbimGeometryObject Create(IIfcGeometricRepresentationItem ifcRepresentation, ILogger logger) { using (new Tracer(LogHelper.CurrentFunctionName(), this._logger, ifcRepresentation)) { return(_engine.Create(ifcRepresentation, null, logger)); } }
public void WireInitFromIfcIndexedPolyCurveTest() { using (var model = MemoryModel.OpenRead(@"Ifc4TestFiles\WirePolycurve.ifc")) { var shape = model.Instances[185] as IIfcGeometricRepresentationItem; IXbimGeometryObject geomObject = geomEngine.Create(shape); Assert.IsTrue(geomObject.IsValid); } }
public IXbimGeometryObject Create(IIfcGeometricRepresentationItem ifcRepresentation, IIfcAxis2Placement3D objectLocation) { try { return(_engine.Create(ifcRepresentation, objectLocation)); } catch (AccessViolationException e) { Logger.ErrorFormat("EE001: Failed to create geometry #{0} of type {1}, {2]", ifcRepresentation.EntityLabel, ifcRepresentation.GetType().Name, e.Message); return(null); } }