// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

//## Custom using statements
//##

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc4x3.GeometricModelResource
{
	public partial class @IfcPolygonalFaceSet : IIfcPolygonalFaceSet
	{

		[CrossSchemaAttribute(typeof(IIfcPolygonalFaceSet), 2)]
		Ifc4.MeasureResource.IfcBoolean? IIfcPolygonalFaceSet.Closed 
		{ 
			get
			{
				if (!Closed.HasValue) return null;
				return new Ifc4.MeasureResource.IfcBoolean(Closed.Value);
			} 
			set
			{
				Closed = value.HasValue ? 
					new MeasureResource.IfcBoolean(value.Value) :  
					 new MeasureResource.IfcBoolean?() ;
				
			}
		}

		[CrossSchemaAttribute(typeof(IIfcPolygonalFaceSet), 3)]
		IItemSet<IIfcIndexedPolygonalFace> IIfcPolygonalFaceSet.Faces 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<IfcIndexedPolygonalFace, IIfcIndexedPolygonalFace>(Faces);
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcPolygonalFaceSet), 4)]
		IItemSet<Xbim.Ifc4.MeasureResource.IfcPositiveInteger> IIfcPolygonalFaceSet.PnIndex 
		{ 
			get
			{
			
				return new Common.Collections.ProxyValueSet<MeasureResource.IfcPositiveInteger, Ifc4.MeasureResource.IfcPositiveInteger>(PnIndex, 
					s => new Ifc4.MeasureResource.IfcPositiveInteger(s), 
					t => new MeasureResource.IfcPositiveInteger(t));
			} 
		}
	//## Custom code
	//##
	}
}