BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

Redundant code in queries

Open rubendel opened this issue 9 years ago • 0 comments

Example:

IfcCompositeCurveSegment.ParentCurve and IfcTrimmedCurve.BasisCurve both point to "IfcCurve", they need the same list of includes, there should be a cleaner way to do this.

        IfcCompositeCurveSegment: {
            type: "IfcCompositeCurveSegment",
            field: "ParentCurve",
            includes: ["IfcCompositeCurve", "IfcPolyline", "IfcTrimmedCurve", "IfcBSplineCurve", "IfcCircle", "IfcEllipse", "IfcLine", "IfcOffsetCurve2D", "IfcOffsetCurve3D"]
        }
        IfcTrimmedCurve: {
            type: "IfcTrimmedCurve",
            fields: ["BasisCurve", "Trim1", "Trim2"],
            includes: ["IfcCompositeCurve", "IfcPolyline", "IfcTrimmedCurve", "IfcBSplineCurve", "IfcCircle", "IfcEllipse", "IfcLine", "IfcOffsetCurve2D", "IfcOffsetCurve3D", "IfcCartesianPoint"]
        }

rubendel avatar Apr 28 '16 12:04 rubendel