protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
if (this as IfcGeometricRepresentationSubContext == null)
{
if (mCoordinateSpaceDimension > 0)
obj["CoordinateSpaceDimension"] = CoordinateSpaceDimension;
if (mPrecision > 0)
obj["Precision"] = Precision;
obj["WorldCoordinateSystem"] = mDatabase[mWorldCoordinateSystem].getJson(this, processed);
if (mTrueNorth > 0)
obj["TrueNorth"] = TrueNorth.getJson(this, processed);
}
JArray arr = new JArray();
foreach (IfcGeometricRepresentationSubContext sub in HasSubContexts)
{
if (sub.mIndex != host.mIndex)
arr.Add(sub.getJson(this, processed));
}
if (arr.Count > 0)
obj["HasSubContexts"] = arr;
if (mHasCoordinateOperation != null)
obj["HasCoordinateOperation"] = mHasCoordinateOperation.getJson(this, processed);
}