public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
                base.IfcParse(propIndex, value);
                break;

            case 2:
                _directrix = (IfcCurve)value.EntityVal;
                break;

            case 3:
                _startParam = new IfcParameterValue(value.RealVal);
                break;

            case 4:
                _endParam = new IfcParameterValue(value.RealVal);
                break;

            case 5:
                _referenceSurface = (IfcSurface)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value);
                break;
            }
        }
Exemple #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 2:
                _directrix = (IfcCurve)(value.EntityVal);
                return;

            case 3:
                _startParam = value.RealVal;
                return;

            case 4:
                _endParam = value.RealVal;
                return;

            case 5:
                _referenceSurface = (IfcSurface)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
 public IfcSurfaceCurveSweptAreaSolid(IfcProfileDef __SweptArea, IfcAxis2Placement3D __Position, IfcCurve __Directrix, IfcParameterValue?__StartParam, IfcParameterValue?__EndParam, IfcSurface __ReferenceSurface)
     : base(__SweptArea, __Position)
 {
     this.Directrix        = __Directrix;
     this.StartParam       = __StartParam;
     this.EndParam         = __EndParam;
     this.ReferenceSurface = __ReferenceSurface;
 }
Exemple #4
0
 public IfcGeometricCurveSet(List <IfcGeometricSetSelect> set) : base(set)
 {
     for (int icounter = 0; icounter < set.Count; icounter++)
     {
         IfcSurface s = set[icounter] as IfcSurface;
         if (s != null)
         {
             throw new Exception("XXX Error, IfcSurface cannot be added to IfcGeometricCurveSet " + mIndex);
         }
     }
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _baseSurface = (IfcSurface)value.EntityVal;
                break;

            case 1:
                _agreementFlag = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _baseSurface = (IfcSurface)(value.EntityVal);
                return;

            case 1:
                _agreementFlag = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcSurface)(value.EntityVal);
                return;

            case 1:
                _boundaries.InternalAdd((IfcBoundaryCurve)value.EntityVal);
                return;

            case 2:
                _implicitOuter = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #8
0
        private IfcDimensionCount DimElem(object elem)
        {
            IfcPoint   pt = elem as IfcPoint;
            IfcCurve   cv = elem as IfcCurve;
            IfcSurface sf = elem as IfcSurface;

            if (pt != null)
            {
                return(pt.Dim);
            }
            if (cv != null)
            {
                return(cv.Dim);
            }
            if (sf != null)
            {
                return(sf.Dim);
            }
            return(0);
        }
Exemple #9
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcSurface)(value.EntityVal);
                return;

            case 1:
                _u1 = value.RealVal;
                return;

            case 2:
                _v1 = value.RealVal;
                return;

            case 3:
                _u2 = value.RealVal;
                return;

            case 4:
                _v2 = value.RealVal;
                return;

            case 5:
                _usense = value.BooleanVal;
                return;

            case 6:
                _vsense = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #10
0
 public IfcFaceSurface(IfcFaceBound[] __Bounds, IfcSurface __FaceSurface, IfcBoolean __SameSense)
     : base(__Bounds)
 {
     this.FaceSurface = __FaceSurface;
     this.SameSense   = __SameSense;
 }
Exemple #11
0
 internal IfcOuterBoundaryCurve(List <IfcCompositeCurveSegment> segs, IfcSurface surface) : base(segs, surface)
 {
 }
Exemple #12
0
 public IfcHalfSpaceSolid(IfcSurface __BaseSurface, Boolean __AgreementFlag)
 {
     this._BaseSurface   = __BaseSurface;
     this._AgreementFlag = __AgreementFlag;
 }
Exemple #13
0
 public IfcBoundaryCurve(List <IfcCompositeCurveSegment> segs, IfcSurface surface) : base(segs, surface)
 {
 }
Exemple #14
0
 public IfcFaceSurface(List <IfcFaceBound> bounds, IfcSurface srf, bool sameSense) : base(bounds)
 {
     FaceSurface = srf; mSameSense = sameSense;
 }
Exemple #15
0
 public IfcAdvancedFace(IfcFaceBound[] __Bounds, IfcSurface __FaceSurface, IfcBoolean __SameSense)
     : base(__Bounds, __FaceSurface, __SameSense)
 {
 }
Exemple #16
0
 public IfcFaceSurface(IfcFaceOuterBound outer, IfcFaceBound inner, IfcSurface srf, bool sameSense) : base(outer, inner)
 {
     FaceSurface = srf; mSameSense = sameSense;
 }
Exemple #17
0
 public IfcBoxedHalfSpace(IfcSurface __BaseSurface, Boolean __AgreementFlag, IfcBoundingBox __Enclosure)
     : base(__BaseSurface, __AgreementFlag)
 {
     this._Enclosure = __Enclosure;
 }
Exemple #18
0
 public IfcPolygonalBoundedHalfSpace(IfcSurface __BaseSurface, Boolean __AgreementFlag, IfcAxis2Placement3D __Position, IfcBoundedCurve __PolygonalBoundary)
     : base(__BaseSurface, __AgreementFlag)
 {
     this._Position          = __Position;
     this._PolygonalBoundary = __PolygonalBoundary;
 }
 public IXbimFace CreateFace(IfcSurface surface)
 {
     return(_engine.CreateFace(surface));
 }
Exemple #20
0
 public IfcHalfSpaceSolid(IfcSurface baseSurface, bool agreementFlag) : base(baseSurface.mDatabase)
 {
     BaseSurface = baseSurface; AgreementFlag = agreementFlag;
 }
Exemple #21
0
 public IfcFaceSurface(IfcFaceOuterBound bound, IfcSurface srf, bool sameSense) : base(bound)
 {
     FaceSurface = srf; mSameSense = sameSense;
 }