コード例 #1
0
ファイル: BbBrepElement.cs プロジェクト: JackTing/ifctoolkit
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        public static BbBRepGeometry Create(
            IList <BbFace> faces)
        {
            var extrudedGeometry = new BbBRepGeometry(faces);

            return(extrudedGeometry);
        }
コード例 #4
0
ファイル: BbBrepElement.cs プロジェクト: JackTing/ifctoolkit
 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;
 }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: BbBRepGeometry.cs プロジェクト: JackTing/ifctoolkit
        public static BbBRepGeometry Create(
			IList<BbFace> faces)
        {
            var extrudedGeometry = new BbBRepGeometry(faces);

            return extrudedGeometry;
        }