Menu

Node transformations order

Help
Anonymous
2012-10-18
2013-08-30
  • Anonymous

    Anonymous - 2012-10-18

    Hi everyone,

    The current code lost order informations between the different transformations in the Node.
    Currently, it is:

            [XmlElement(ElementName = "lookat")]
            public Lookat[] Lookat;
            [XmlElement(ElementName = "matrix")]
            public Matrix[] Matrix;
            [XmlElement(ElementName = "rotate")]
            public Rotate[] Rotate;
            [XmlElement(ElementName = "scale")]
            public Scale[] Scale;
            [XmlElement(ElementName = "skew")]
            public Skew[] Skew;
    

    Shouldn't it be:

            [XmlElement("translate", typeof(Translate))]
            [XmlElement("rotate", typeof(Rotate))]
            [XmlElement("scale", typeof(Scale))]
            [XmlElement("skew", typeof(Skew))]
            [XmlElement("matrix", typeof(Matrix))]
            [XmlElement("lookat", typeof(Lookat))]
        public object[] Transforms;
    

    ?

    Or am I wrong when reading the specifications?

    Cédric

     
  • number1101

    number1101 - 2013-08-30

    Sorry for the extremely late response, but i just rechecked and i don't believe the ordering is off. I can't find anything in the spec that orders it as you have. Please refer me to a page or line number and I will check it out.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.