BbBrepElement( string name, BbBRepGeometry brepGeometry, BbCoordinate3D position, BbDirection3D zAxis, BbDirection3D xAxis, BbLocalPlacement3D containerLocation, IfcOwnerHistory ownerHistory, Type IfcEntityType) { Name = name; //Profile = profile; BbPosition3D pos = BbPosition3D.Create(position, zAxis, xAxis); ObjectBbLocalPlacement = BbLocalPlacement3D.Create( containerLocation, pos ); // ifcBuildingElement = Activator.CreateInstance(EbConstants.Part21NSName, EbConstants.Part21NSName + "." + ifcEntityName); ifcElement = Activator.CreateInstance(IfcEntityType) as IfcElement; ifcElement.GlobalId = IfcGloballyUniqueId.NewGuid(); ifcElement.OwnerHistory = ownerHistory; ifcElement.Name = Name; //ObjectType = , ifcElement.ObjectPlacement = ObjectBbLocalPlacement.IfcLocalPlacement; ifcElement.Representation = brepGeometry.IfcProductDefinitionShape; }
BbBrepElement( string name, BbBRepGeometry brepGeometry, BbCoordinate3D position, BbDirection3D zAxis, BbDirection3D xAxis, BbLocalPlacement3D containerLocation, IfcOwnerHistory ownerHistory, Type IfcEntityType) { Name = name; //Profile = profile; BbPosition3D pos = BbPosition3D.Create(position, zAxis, xAxis); ObjectBbLocalPlacement = BbLocalPlacement3D.Create( containerLocation, pos); // ifcBuildingElement = Activator.CreateInstance(EbConstants.Part21NSName, EbConstants.Part21NSName + "." + ifcEntityName); ifcElement = Activator.CreateInstance(IfcEntityType) as IfcElement; ifcElement.GlobalId = IfcGloballyUniqueId.NewGuid(); ifcElement.OwnerHistory = ownerHistory; ifcElement.Name = Name; //ObjectType = , ifcElement.ObjectPlacement = ObjectBbLocalPlacement.IfcLocalPlacement; ifcElement.Representation = brepGeometry.IfcProductDefinitionShape; }
public static BbBRepGeometry Create( IList <BbFace> faces) { var extrudedGeometry = new BbBRepGeometry(faces); return(extrudedGeometry); }
public static BbBrepElement Create( string name, BbBRepGeometry brepGeometry, BbCoordinate3D position, BbDirection3D zAxis, BbDirection3D xAxis, BbSpatialElement container, Type ifcEntityType ) { var mainPart = new BbBrepElement( name, brepGeometry, position, zAxis, xAxis, container.ObjectBbLocalPlacement, container.IfcSpatialStructureElement.OwnerHistory, ifcEntityType); //container.AddContained (mainPart); mainPart.AddToSpatialElement(container); BbInstanceDB.AddToExport(mainPart); return mainPart; }
public static BbBrepElement Create( string name, BbBRepGeometry brepGeometry, BbCoordinate3D position, BbDirection3D zAxis, BbDirection3D xAxis, BbSpatialElement container, Type ifcEntityType ) { var mainPart = new BbBrepElement( name, brepGeometry, position, zAxis, xAxis, container.ObjectBbLocalPlacement, container.IfcSpatialStructureElement.OwnerHistory, ifcEntityType); //container.AddContained (mainPart); mainPart.AddToSpatialElement(container); BbInstanceDB.AddToExport(mainPart); return(mainPart); }
public static BbBRepGeometry Create( IList<BbFace> faces) { var extrudedGeometry = new BbBRepGeometry(faces); return extrudedGeometry; }