Example #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);
        }
Example #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;
        }
Example #3
0
        public IfcRepresentationMap(IfcAxis2Placement mappingOrigin, IfcRepresentation mappedRepresentation) : base()
        {
            HasShapeAspects = new List <IfcShapeAspect>();
            MapUsage        = new List <IfcMappedItem>();

            MappingOrigin        = mappingOrigin;
            MappedRepresentation = mappedRepresentation;
        }
Example #4
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;
        }
Example #5
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;
 }
Example #6
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;
        }
Example #7
0
 public IfcPlanarBox(IfcLengthMeasure sizeInX, IfcLengthMeasure sizeInY, IfcAxis2Placement placement) : base(sizeInX, sizeInY)
 {
     Placement = placement;
 }
Example #8
0
 public IfcConic(IfcAxis2Placement position) : base()
 {
     Position = position;
 }
Example #9
0
 public IfcLocalPlacement(IfcObjectPlacement placementRelTo, IfcAxis2Placement relativePlacement) : base()
 {
     PlacementRelTo    = placementRelTo;
     RelativePlacement = relativePlacement;
 }
Example #10
0
 /// <summary>
 /// Construct a IfcLocalPlacement with all required attributes.
 /// </summary>
 public IfcLocalPlacement(IfcAxis2Placement relativePlacement) : base()
 {
     RelativePlacement = relativePlacement;
 }
Example #11
0
 public IfcTextLiteralWithExtent(IfcPresentableText literal, IfcAxis2Placement placement, IfcTextPath path, IfcPlanarExtent extent, IfcBoxAlignment boxAlignment) : base(literal, placement, path)
 {
     Extent       = extent;
     BoxAlignment = boxAlignment;
 }
Example #12
0
 public IfcEllipse(IfcAxis2Placement position, IfcPositiveLengthMeasure semiAxis1, IfcPositiveLengthMeasure semiAxis2) : base(position)
 {
     SemiAxis1 = semiAxis1;
     SemiAxis2 = semiAxis2;
 }
Example #13
0
 public IfcTextLiteral(IfcPresentableText literal, IfcAxis2Placement placement, IfcTextPath path) : base()
 {
     Literal   = literal;
     Placement = placement;
     Path      = path;
 }
Example #14
0
 public IfcCircle(IfcAxis2Placement position, IfcPositiveLengthMeasure radius) : base(position)
 {
     Radius = radius;
 }
Example #15
0
 public static bool?IfcCorrectLocalPlacement(IfcAxis2Placement axisPlacement, IfcObjectPlacement relPlacement)
 {
     throw new NotImplementedException();
 }
Example #16
0
 public static bool?IfcSameAxis2Placement(IfcAxis2Placement ap1, IfcAxis2Placement ap2, double epsilon)
 {
     throw new NotImplementedException();
 }