Home My Page Projects OpenAlea
Summary Activity Forums Tracker Lists Tasks Docs News SCM Files

Forum: amapmod

Monitor Forum | Start New Thread Start New Thread
MTG loading troubles [ Reply ]
By: Didier Combes on 2009-10-27 16:33
[forum:103272]
Dear All,

We are working on plant reconstruction using Visualea. We digitzed pea plants at leaf scales with 3A software. Then we built a MTG file. We decided to load this MTG file on Visualea. It is where we have some trouble because we encountered two problems :
1) the first one is that the MTG loading (by connecting our MTG file and the node MTG) has different form. The first for of the MTG is <openalea.mtg.mtg.MTG object at 0x0AE5DF90> and it is not possible to use all the methods of aml. And on the snapshot of the contextual menu (see the file at http://www.servimg.com/image_preview.php?i=119&u=10012676), you can see the description of the MTG.
The second form of the MTG, which is the one that we expected, is <MTG> : vtxnb=39, edgenb=33, levelnb=5, featurenb=85, bytesize=138697 .
So what is the difference between these two forms apart there is one we can use (the second one) and one we cannot.


2) The second problem is that the MTG is not loaded and we have got the following error message:
MTG() got an unexpected keyword argument 'FeatureMap'
Traceback (most recent call last):
File "G:\Python26\lib\site-packages\openalea.visualea-0.7.0.dev_r1845-py2.6.egg\openalea\visualea\util.py", line 85, in wrapped
raise e.exception
amlPy.Exception:
*** ERROR : in MTG module ... detected in source FILE: build-scons\src\cpp\mtg_funs.cpp, LINE: 715, on lookahead : EOF = '0'
*** line : *** at : ^
*** ----> Cannot proceed: no MTG loaded


Thank you for your help

Didier