GeometryGym.Ifc.IfcElement.IfcElement C# (CSharp) Méthode

IfcElement() protected méthode

protected IfcElement ( IfcProduct host, GeometryGym.Ifc.IfcMaterialProfileSetUsage profile, IfcAxis2Placement3D placement, double length ) : System
host IfcProduct
profile GeometryGym.Ifc.IfcMaterialProfileSetUsage
placement IfcAxis2Placement3D
length double
Résultat System
		protected IfcElement(IfcProduct host, IfcMaterialProfileSetUsage profile, IfcAxis2Placement3D placement, double length) : base(host,new IfcLocalPlacement(host.Placement,placement), null)
		{
			List<IfcShapeModel> reps = new List<IfcShapeModel>();
			IfcCartesianPoint cp = new IfcCartesianPoint(mDatabase, 0, 0, length);
			IfcPolyline ipl = new IfcPolyline(mDatabase.Factory.Origin, cp);
			reps.Add(IfcShapeRepresentation.GetAxisRep(ipl));
			
			profile.Associates.addAssociation(this);

			IfcMaterialProfileSet ps = profile.ForProfileSet;
			IfcMaterialProfileSetUsageTapering psut = profile as IfcMaterialProfileSetUsageTapering;
			if (psut != null)
				throw new Exception("Tapering Elements not implemented yet!");
			IfcProfileDef pd = null;
			if (ps.mCompositeProfile > 0)
				pd = ps.CompositeProfile;
			else
			{
				if (ps.mMaterialProfiles.Count > 0)
					pd = ps.MaterialProfiles[0].Profile;
				else
					throw new Exception("Profile not provided");
			}
			if (pd != null)
				reps.Add(new IfcShapeRepresentation( new IfcExtrudedAreaSolid(pd, pd.CalculateTransform(profile.CardinalPoint), length))); 
			
			Representation = new IfcProductDefinitionShape(reps);
		
		}
		protected IfcElement(IfcProduct host, IfcMaterialProfileSetUsage profile, IfcAxis2Placement3D placement, Tuple<double,double> arcOrigin, double arcAngle) : base(host, new IfcLocalPlacement(host.Placement, placement), null)

Same methods

IfcElement::IfcElement ( ) : System
IfcElement::IfcElement ( DatabaseIfc db ) : System
IfcElement::IfcElement ( DatabaseIfc db, IfcElement e, bool downStream ) : System
IfcElement::IfcElement ( IfcElement basis ) : System
IfcElement::IfcElement ( IfcObjectDefinition host, IfcObjectPlacement p, IfcProductRepresentation r ) : System
IfcElement::IfcElement ( IfcProduct host, GeometryGym.Ifc.IfcMaterialProfileSetUsage profile, IfcAxis2Placement3D placement, double>.Tuple arcOrigin, double arcAngle ) : System