Beispiel #1
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;
 }
Beispiel #2
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);
        }
Beispiel #3
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;
        }
 public IfcCoordinateReferenceSystemSelect(IfcGeometricRepresentationContext choice)
 {
     this.choice = choice;
 }