BIMserver
BIMserver copied to clipboard
Redundant code in queries
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"]
}