This commit is contained in:
Jon Mirtschin 2020-10-27 17:04:19 +11:00
Родитель 70ac956f84
Коммит d21c8149e2
6 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -98,7 +98,7 @@ namespace GeometryGym.Ifc
internal IfcCurve mEdgeGeometry;// IfcCurve;
internal bool mSameSense = false;// : BOOL;
public IfcCurve EdgeGeometry { get { return mEdgeGeometry; } set { mEdgeGeometry = value; value.mEdge = this; } }
public IfcCurve EdgeGeometry { get { return mEdgeGeometry; } set { mEdgeGeometry = value; value.mOfEdge = this; } }
public bool SameSense { get { return mSameSense; } set { mSameSense = value; } }
internal IfcEdgeCurve() : base() { }

Просмотреть файл

@ -642,7 +642,7 @@ namespace GeometryGym.Ifc
public abstract partial class IfcOffsetCurve : IfcCurve //ABSTRACT SUPERTYPE OF(ONEOF(IfcOffsetCurve2D, IfcOffsetCurve3D, IfcOffsetCurveByDistances))
{
private IfcCurve mBasisCurve;//: IfcCurve;
public IfcCurve BasisCurve { get { return mBasisCurve; } set { mBasisCurve = value; } }
public IfcCurve BasisCurve { get { return mBasisCurve; } set { mBasisCurve = value; value.mBasisCurveOfOffsets.Add(this); } }
protected IfcOffsetCurve() : base() { }
protected IfcOffsetCurve(DatabaseIfc db, IfcOffsetCurve c, DuplicateOptions options) : base(db, c, options) { BasisCurve = db.Factory.Duplicate(c.BasisCurve) as IfcCurve; }

Просмотреть файл

@ -1831,10 +1831,10 @@ namespace GeometryGym.Ifc
}
public IfcPropertySet(IfcObjectDefinition relatedObject, string name, IfcProperty prop) : base(relatedObject, name) { addProperty(prop); }
public IfcPropertySet(IfcObjectDefinition relatedObject, string name, IEnumerable<IfcProperty> props) : base(relatedObject, name) { foreach(IfcProperty p in props) addProperty(p); }
public IfcPropertySet(IfcPropertySetTemplate template, IEnumerable<IfcProperty> properties) : this(template.Name, properties)
{
Description = template.Description;
}
public IfcPropertySet(IfcObjectDefinition relatedObject, string name, params IfcProperty[] properties)
: base(relatedObject, name) { foreach (IfcProperty p in properties) addProperty(p); }
public IfcPropertySet(IfcPropertySetTemplate template, IEnumerable<IfcProperty> properties)
: this(template.Name, properties) { Description = template.Description; }
protected override List<T> Extract<T>(Type type)
{

Просмотреть файл

@ -2185,7 +2185,6 @@ namespace GeometryGym.Ifc
public partial class IfcReparametrisedCompositeCurveSegment : IfcCompositeCurveSegment
{
private double mParamLength;// : IfcParameterValue
public double ParamLength { get { return mParamLength; } set { mParamLength = value; } }
internal IfcReparametrisedCompositeCurveSegment() : base() { }

Просмотреть файл

@ -126,7 +126,7 @@ namespace GeometryGym.Ifc
internal IfcCurve mDirectrix;// : IfcCurve;
internal LIST<IfcProfileDef> mCrossSections = new LIST<IfcProfileDef>();// : LIST [2:?] OF IfcProfileDef;
public IfcCurve Directrix { get { return mDirectrix; } set { mDirectrix = value; } }
public IfcCurve Directrix { get { return mDirectrix; } set { mDirectrix = value; value.mDirectrixOfSectionedSolids.Add(this); } }
public LIST<IfcProfileDef> CrossSections { get { return mCrossSections; } set { mCrossSections.Clear(); if (value != null) CrossSections = value; } }
protected IfcSectionedSolid() : base() { }
@ -282,6 +282,7 @@ namespace GeometryGym.Ifc
public IfcTransitionCode Transition { get { return mTransition; } set { mTransition = value; } }
protected IfcSegment() : base() { }
protected IfcSegment(DatabaseIfc db, IfcSegment s, DuplicateOptions options) : base(db, s, options) { Transition = s.Transition; }
protected IfcSegment(DatabaseIfc db, IfcTransitionCode transition)
: base(db) { Transition = transition; }
}

Просмотреть файл

@ -32,6 +32,7 @@ namespace GeometryGym.Ifc
{
internal Vector3d Vector { get { return Orientation.Vector3d * mMagnitude; } }
public IfcVector(DatabaseIfc db, Vector2d v) : base(db) { Orientation = new IfcDirection(db, v); mMagnitude = v.Length; }
public IfcVector(DatabaseIfc db, Vector3d v) : base(db) { Orientation = new IfcDirection(db, v); mMagnitude = v.Length; }
}
public partial class IfcVirtualGridIntersection : BaseClassIfc