Skip to content

Problem with scene scale definition #117

Open

Description

@thomasarsouze

Not sure if I should write this issue here or here.

Anyway... also adding @pradal to the discussion.

In your simple_plant.mtg example, you implicitly affect $ and Scene to the same symbol for scale 0. This is not accepted in openalea.mtg that fails at parsing this file. Even if changing explicitly to adding "SCENE" to the classes, it also fails with openalea.mtg because 0-scale is defined implicitly.

I don't know what should be defined as the norm or not here... and which parser should be changed accordingly.

Again, as for #116 , it would be good to have all mtg examples from both packages being parsed correctly in both plateforms.

Activity

  1. VEZY commented on Nov 20, 2026

    @VEZY
    Owner

    Ha. I took this norm from AMAPStudio, so I guess the Python implementation should handle that because we have a lot of MTG files following this. Open for discussion though.

  2. pradal commented on Nov 20, 2026

    @pradal

    Hi guys,
    There is a problem with that.
    The node 0 is a way to connect all the not-connected components (to be able to represent a forest rather than just a tree).
    I have never seen this before.

    Anyway, it would be nice to design a "nice" MTG format. But let do it in another issue... ;)

  3. thomasarsouze commented on Nov 20, 2026

    @thomasarsouze
    CollaboratorAuthor

    OK : going deeper into defining a "standard" MTG format while also keeping the ability to read historical files is out of the scope of this issue.

    @VEZY : did you see many AMAP files with this ? openalea.mtg integrates old AMAP-style AML features hence should be able to read old files. I hope you do not generate mtg with this.

    Meanwhile, I'll deal with other examples that do not integrate this 0-scale.

    I close the issue, but fell free to re-open if you want to modify your code in relation with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions