Exemple #1
0
        internal bool method_1(DxfHandledObject sourceObject, string fieldName, ref WW.Math.Point3D p)
        {
            bool   flag = false;
            string str  = (string)null;

            if (DxfModelRepairer.smethod_0(p.X))
            {
                p.X  = 0.0;
                flag = true;
                str  = "X";
            }
            if (DxfModelRepairer.smethod_0(p.Y))
            {
                p.Y  = 0.0;
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + ", Y" : "Y";
            }
            if (DxfModelRepairer.smethod_0(p.Z))
            {
                p.Z  = 0.0;
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + " and Z" : "Z";
            }
            if (flag)
            {
                this.ilist_0.Add(new DxfMessage(DxfStatus.InvalidPoint, Severity.Warning, "FieldName", (object)fieldName)
                {
                    Parameters =
                    {
                        {
                            "Object",
                            (object)sourceObject
                        },
                        {
                            "InvalidCoordinates",
                            (object)str
                        }
                    }
                });
            }
            return(flag);
        }
Exemple #2
0
        internal bool method_6(DxfHandledObject sourceObject, string fieldName, ref WW.Math.Vector3D normal)
        {
            bool   flag = false;
            string str  = (string)null;

            if (DxfModelRepairer.smethod_0(normal.X))
            {
                flag = true;
                str  = "X";
            }
            if (DxfModelRepairer.smethod_0(normal.Y))
            {
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + ", Y" : "Y";
            }
            if (DxfModelRepairer.smethod_0(normal.Z))
            {
                flag = true;
                str  = !string.IsNullOrEmpty(str) ? str + " and Z" : "Z";
            }
            if (flag)
            {
                normal = WW.Math.Vector3D.ZAxis;
                this.ilist_0.Add(new DxfMessage(DxfStatus.InvalidNormal, Severity.Warning, "FieldName", (object)fieldName)
                {
                    Parameters =
                    {
                        {
                            "Object",
                            (object)sourceObject
                        },
                        {
                            "InvalidCoordinates",
                            (object)str
                        }
                    }
                });
            }
            return(flag);
        }
Exemple #3
0
        internal bool method_4(DxfHandledObject sourceObject, string fieldName, ref double scale)
        {
            bool flag = false;

            if (DxfModelRepairer.smethod_0(scale) || scale == 0.0)
            {
                scale = 1.0;
                flag  = true;
            }
            if (flag)
            {
                this.ilist_0.Add(new DxfMessage(DxfStatus.InvalidScale, Severity.Warning, "FieldName", (object)fieldName)
                {
                    Parameters =
                    {
                        {
                            "Object",
                            (object)sourceObject
                        }
                    }
                });
            }
            return(flag);
        }