Пример #1
0
        protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
        {
            base.setJSON(obj, host, options);
            obj["Degree"] = Degree;
            JArray array = new JArray();

            foreach (IfcCartesianPoint point in ControlPointsList)
            {
                array.Add(point.getJson(this, options));
            }
            obj["ControlPointsList"] = array;
            obj["CurveForm"]         = CurveForm.ToString();
            obj["ClosedCurve"]       = ClosedCurve.ToString();
            obj["SelfIntersect"]     = SelfIntersect.ToString();
        }
Пример #2
0
        protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
        {
            base.setJSON(obj, host, processed);
            obj["Degree"] = Degree;
            JArray array = new JArray();
            List <IfcCartesianPoint> controlPoints = ControlPointsList;

            foreach (IfcCartesianPoint point in controlPoints)
            {
                array.Add(point.getJson(this, processed));
            }
            obj["ControlPointsList"] = array;
            obj["CurveForm"]         = CurveForm.ToString();
            obj["ClosedCurve"]       = ClosedCurve.ToString();
            obj["SelfIntersect"]     = SelfIntersect.ToString();
        }