Inheritance: BaseClassIfc, IfcLayeredItem
Example #1
0
		protected static void parseFields(IfcRepresentationItem i, List<string> arrFields, ref int ipos) { }
Example #2
0
		public IfcRepresentationMap(IfcRepresentationItem item) : base(item.mDatabase) { mMappingOrigin = new IfcAxis2Placement3D(item.mDatabase).mIndex; MappedRepresentation = new IfcShapeRepresentation(new List<IfcRepresentationItem>() { item }); }
Example #3
0
		protected IfcRepresentation(IfcRepresentationItem ri, string identifier, string repType)
			: this(ri.mDatabase, identifier, repType) { mItems.Add(ri.mIndex); }
Example #4
0
		protected IfcRepresentationItem(IfcRepresentationItem p) : base() { }
Example #5
0
		protected IfcRepresentation(IfcRepresentationItem ri) : this(ri.mDatabase,"","") { mItems.Add(ri.mIndex); }
Example #6
0
		private bool setIdentifiers(IfcRepresentationItem ri)
		{
			IfcGeometricRepresentationItem gri = ri as IfcGeometricRepresentationItem;
			if (ri != null)
			{
				mRepresentationIdentifier = "Body";
				mRepresentationType = "MappedRepresentation";
				IfcMappedItem mi = ri as IfcMappedItem;
				if (mi != null)
					return true;
				mRepresentationType = "SolidModel";
				IfcSolidModel sm = ri as IfcSolidModel; //IfcCsgSolid ,IfcManifoldSolidBrep,IfcSweptAreaSolid,IfcSweptDiskSolid
				if (sm != null)
					return true;

				mRepresentationType = "CSG";
				IfcBooleanResult br = ri as IfcBooleanResult;
				if (br != null)
					return true;
				IfcCsgPrimitive3D csg = ri as IfcCsgPrimitive3D;
				if (csg != null)
					return true;
				mRepresentationType = "SectionedSpine";
				IfcSectionedSpine ss = ri as IfcSectionedSpine;
				if (ss != null)
					return true;
				mRepresentationIdentifier = "Body";
				mRepresentationType = "SurfaceModel";
				IfcFaceBasedSurfaceModel fbs = ri as IfcFaceBasedSurfaceModel;
				if (fbs != null)
					return true;
				IfcShellBasedSurfaceModel sbs = ri as IfcShellBasedSurfaceModel;
				if (sbs != null)
					return true;
				mRepresentationType = "Tessellation";
				IfcTessellatedItem ti = ri as IfcTessellatedItem;
				if (ti != null)
					return true;
				mRepresentationIdentifier = "Surface";
				mRepresentationType = "Surface3D";
				IfcSurface s = ri as IfcSurface;
				if (s != null)
					return true;
				mRepresentationIdentifier = "Curve";
				mRepresentationType = "Curve3D";
				IfcCurve c = ri as IfcCurve;
				if (c != null)
					return true;
			}
			mRepresentationIdentifier = "$";
			mRepresentationType = "$";
			return false;
		}
Example #7
0
		internal static IfcShapeRepresentation CreateRepresentation(IfcRepresentationItem ri)
		{
			if (ri == null)
				return null;
			IfcBooleanResult br = ri as IfcBooleanResult;
			if (br != null)
				return new IfcShapeRepresentation(br);
			IfcCurve c = ri as IfcCurve;
			if (c != null)
				return new IfcShapeRepresentation(c);
			IfcCsgPrimitive3D csg = ri as IfcCsgPrimitive3D;
			if (csg != null)
				return new IfcShapeRepresentation(csg);
			IfcCsgSolid csgs = ri as IfcCsgSolid;
			if (csgs != null)
				return new IfcShapeRepresentation(csgs);
			IfcExtrudedAreaSolid eas = ri as IfcExtrudedAreaSolid;
			if (eas != null)
				return new IfcShapeRepresentation(eas);
			IfcFacetedBrep fb = ri as IfcFacetedBrep;
			if (fb != null)
				return new IfcShapeRepresentation(fb);
			IfcFaceBasedSurfaceModel fbs = ri as IfcFaceBasedSurfaceModel;
			if (fbs != null)
				return new IfcShapeRepresentation(fbs);
			IfcGeometricSet gs = ri as IfcGeometricSet;
			if (gs != null)
				return new IfcShapeRepresentation(gs);
			IfcPoint p = ri as IfcPoint;
			if (p != null)
				return new IfcShapeRepresentation(p);
			IfcSectionedSpine ss = ri as IfcSectionedSpine;
			if (ss != null)
				return new IfcShapeRepresentation(ss);
			IfcShellBasedSurfaceModel sbs = ri as IfcShellBasedSurfaceModel;
			if (sbs != null)
				return new IfcShapeRepresentation(sbs);
			IfcSurface s = ri as IfcSurface;
			if (s != null)
				return new IfcShapeRepresentation(s);
			IfcSweptAreaSolid sas = ri as IfcSweptAreaSolid;
			if (sas != null)
				return new IfcShapeRepresentation(sas);
			IfcSweptDiskSolid sds = ri as IfcSweptDiskSolid;
			if (sds != null)
				return new IfcShapeRepresentation(sds);
			IfcAdvancedBrep b = ri as IfcAdvancedBrep;
			if (b != null)
				return new IfcShapeRepresentation(b);
			IfcTessellatedItem ti = ri as IfcTessellatedItem;
			if (ti != null)
				return new IfcShapeRepresentation(ti);
			IfcMappedItem mi = ri as IfcMappedItem;
			if (mi != null)
				return new IfcShapeRepresentation(mi);
			ri.mDatabase.logError("XXX Error in identiying " + ri.ToString() + " as shape representation, please contact Jon!");
			return null;
		}
Example #8
0
		protected IfcShapeModel(IfcRepresentationItem ri, string identifier, string repType) : base(ri, identifier, repType) { }
Example #9
0
		protected IfcStyleModel(IfcRepresentationItem ri) : base(ri) { }