Inheritance: IfcGeometricRepresentationItem
Beispiel #1
0
		public IfcElement GenerateMappedItemElement(IfcProduct container, IfcCartesianTransformationOperator transform)  
		{
			string typename = this.GetType().Name;
			typename = typename.Substring(0, typename.Length - 4);
			IfcProductDefinitionShape pds = new IfcProductDefinitionShape(new IfcShapeRepresentation(new IfcMappedItem(RepresentationMaps[0], transform)));
			IfcElement element = IfcElement.constructElement(typename, container,null, pds);
			element.RelatingType = this;
			return element;
		}
Beispiel #2
0
		internal static void parseFields(IfcCartesianTransformationOperator o, List<string> arrFields, ref int ipos)
		{
			IfcGeometricRepresentationItem.parseFields(o, arrFields, ref ipos);
			o.mAxis1 = ParserSTEP.ParseLink(arrFields[ipos++]);
			o.mAxis2 = ParserSTEP.ParseLink(arrFields[ipos++]);
			o.mLocalOrigin = ParserSTEP.ParseLink(arrFields[ipos++]);
			o.mScale = ParserSTEP.ParseDouble(arrFields[ipos++]);
			if (o.mScale == 0)
				o.mScale = 1;
		}
Beispiel #3
0
		internal IfcMappedItem(IfcRepresentationMap rm, IfcCartesianTransformationOperator co) : base(rm.mDatabase) { mMappingSource = rm.mIndex; mMappingTarget = co.mIndex; }
Beispiel #4
0
		protected IfcCartesianTransformationOperator(IfcCartesianTransformationOperator o) : base(o) { mAxis1 = o.mAxis1; mAxis2 = o.mAxis2; mLocalOrigin = o.mLocalOrigin; mScale = o.mScale; }