Example #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _points = (IfcCartesianPointList)(value.EntityVal);
                return;

            case 1:
                _segments.InternalAdd((IfcSegmentIndexSelect)value.EntityVal);
                return;

            case 2:
                _selfIntersect = value.BooleanVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #2
0
 public IfcIndexedPolyCurve(IfcCartesianPointList __Points, IfcSegmentIndexSelect[] __Segments, IfcBoolean?__SelfIntersect)
 {
     this._Points        = __Points;
     this._Segments      = new List <IfcSegmentIndexSelect>(__Segments);
     this._SelfIntersect = __SelfIntersect;
 }