Exemplo n.º 1
0
        public IfcGeometricRepresentationContext AddGeometricContext()
        {
            //Ex: #38= IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,0.000010,#36,#37);
            var dimCount = new IfcDimensionCount(3);
            var location = new IfcCartesianPoint(new List <IfcLengthMeasure> {
                0, 0, 0
            });
            var up = new IfcDirection(new List <IfcReal> {
                0, 0, 1
            });
            var x = new IfcDirection(new List <IfcReal> {
                1, 0, 0
            });

            this.AddEntity(location);
            this.AddEntity(up);
            this.AddEntity(x);
            var place3d = new IfcAxis2Placement3D(location, up, x);
            var worldCs = new IfcAxis2Placement(place3d);
            var north   = new IfcDirection(new List <IfcReal> {
                0, 1, 0
            });

            // this.AddEntity(worldCs);
            this.AddEntity(place3d);
            this.AddEntity(north);
            var geo = new IfcGeometricRepresentationContext(null, new IfcLabel("Model"), new IfcDimensionCount(3), 0.000010, worldCs, north);

            this.AddEntity(geo);
            return(geo);
        }
Exemplo n.º 2
0
        }                                                                            // inverse


        /// <summary>
        /// Construct a IfcGeometricRepresentationContext with all required attributes.
        /// </summary>
        public IfcGeometricRepresentationContext(IfcDimensionCount coordinateSpaceDimension, IfcAxis2Placement worldCoordinateSystem) : base()
        {
            HasSubContexts         = new List <IfcGeometricRepresentationSubContext>();
            HasCoordinateOperation = new List <IfcCoordinateOperation>();

            CoordinateSpaceDimension = coordinateSpaceDimension;
            WorldCoordinateSystem    = worldCoordinateSystem;
        }
Exemplo n.º 3
0
        public IfcGeometricRepresentationContext(IfcLabel contextIdentifier, IfcLabel contextType, IfcDimensionCount coordinateSpaceDimension, IfcReal precision, IfcAxis2Placement worldCoordinateSystem, IfcDirection trueNorth) : base(contextIdentifier, contextType)
        {
            HasSubContexts         = new List <IfcGeometricRepresentationSubContext>();
            HasCoordinateOperation = new List <IfcCoordinateOperation>();

            CoordinateSpaceDimension = coordinateSpaceDimension;
            Precision             = precision;
            WorldCoordinateSystem = worldCoordinateSystem;
            TrueNorth             = trueNorth;
        }
Exemplo n.º 4
0
 public IfcGeometricRepresentationSubContext(IfcLabel contextIdentifier, IfcLabel contextType, IfcDimensionCount coordinateSpaceDimension, IfcReal precision, IfcAxis2Placement worldCoordinateSystem, IfcDirection trueNorth, IfcGeometricRepresentationContext parentContext, IfcPositiveRatioMeasure targetScale, IfcGeometricProjectionEnum targetView, IfcLabel userDefinedTargetView) : base(contextIdentifier, contextType, coordinateSpaceDimension, precision, worldCoordinateSystem, trueNorth)
 {
     ParentContext         = parentContext;
     TargetScale           = targetScale;
     TargetView            = targetView;
     UserDefinedTargetView = userDefinedTargetView;
 }
Exemplo n.º 5
0
        }                                                                                                                                    // derived


        /// <summary>
        /// Construct a IfcGeometricRepresentationSubContext with all required attributes.
        /// </summary>
        public IfcGeometricRepresentationSubContext(IfcDimensionCount coordinateSpaceDimension, IfcAxis2Placement worldCoordinateSystem, IfcGeometricRepresentationContext parentContext, IfcGeometricProjectionEnum targetView) : base(coordinateSpaceDimension, worldCoordinateSystem)
        {
            ParentContext = parentContext;
            TargetView    = targetView;
        }