Esempio n. 1
0
        protected override void SetValues()
        {
            base.SetValues();
            Points = new Point3D [4];

            MatchCollection values = WordsEx.Matches(Line);

            Points[0] = new Point3D(
                Convert.ToDouble(values[2].Value),
                Convert.ToDouble(values[3].Value),
                Convert.ToDouble(values[4].Value));

            Points[1] = new Point3D(
                Convert.ToDouble(values[5].Value),
                Convert.ToDouble(values[6].Value),
                Convert.ToDouble(values[7].Value));

            Points[2] = new Point3D(
                Convert.ToDouble(values[8].Value),
                Convert.ToDouble(values[9].Value),
                Convert.ToDouble(values[10].Value));

            Points[3] = new Point3D(
                Convert.ToDouble(values[11].Value),
                Convert.ToDouble(values[12].Value),
                Convert.ToDouble(values[13].Value));
        }
Esempio n. 2
0
        protected override void SetValues()
        {
            base.SetValues();

            MatchCollection values = WordsEx.Matches(Line);

            FileName = values[values.Count - 1].Value;

            Matrix = new Matrix3D(Convert.ToDouble(values[5].Value), Convert.ToDouble(values[8].Value), Convert.ToDouble(values[11].Value), 0,
                                  Convert.ToDouble(values[6].Value), Convert.ToDouble(values[9].Value), Convert.ToDouble(values[12].Value), 0,
                                  Convert.ToDouble(values[7].Value), Convert.ToDouble(values[10].Value), Convert.ToDouble(values[13].Value), 0,
                                  Convert.ToDouble(values[2].Value), Convert.ToDouble(values[3].Value), Convert.ToDouble(values[4].Value), 1);
        }
Esempio n. 3
0
        protected override void SetValues()
        {
            base.SetValues();

            MatchCollection commands = WordsEx.Matches(Line);

            if (commands.Count > 2)
            {
                if (commands[1].Value == "BFC")
                {
                    this.Type = MetaCommandType.BFC;
                    ParseBFC(commands);
                }
            }
        }
Esempio n. 4
0
        protected override void SetValues()
        {
            base.SetValues();

            MatchCollection commands = WordsEx.Matches(Line);

            //_commands[0] = "NOCERTIFY";
            //_commands[1] = Winding.CCW.ToString();
            //_commands[2] = null;
            //_commands[3] = Boolean.FalseString;

            if (commands.Count > 2)
            {
                if (commands[1].Value == "BFC")
                {
                    this.Type = MetaCommandType.BFC;
                    ParseBFC(commands);
                }
            }
        }