Smart Lab Helping Forum

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: XML to CPP Coverter for SOFA Beta version FeedBack


Newbie

Status: Offline
Posts: 2
Date:
XML to CPP Coverter for SOFA Beta version FeedBack
Permalink  
 


Please give feedback after testing XML to CPP converter so we can improve and remove errors from our software.



__________________
Mohsin Nasir Research Assistant SMART Lab


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink  
 

Hey Mohsin and Sheeraz,

 

 I tried the converter for an example called 2d included with sofa examples. The code generated had two errors. One with this line

"uniformmass->setMass( 1 1 0.83333 );"

So I think there is something wrong with the way the arguments are given, and the other is with Rigidmapping.

The compilier does not identify RigidMapping as a valid identifier, which means probably that the header file is missing or maybe the namespace definition is missing.

 

Can you guys comment on this...

 

Thanks,

Shamyl



__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink  
 

I think the error with RigidMapping seems to be that it is a class template and we need to initialize it with certain types something like this,

BarycentricMapping3_to_Ext3* mapping = new BarycentricMapping3_to_Ext3(m1,man_model);

But I'm not exactly sure.

Shamyl

__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink  
 

Your documentation does not include an example on how to use your tool. In the document it says give the filename of the scn or xml file which I did, but it wouldn't work. So what I found was that we do not need to give the .scn or .xml extension for the tool to work.

Please include this part in your documentation.

Thanks,
Shamyl

__________________


Veteran Member

Status: Offline
Posts: 39
Date:
Permalink  
 

The first example that I used was

C:\Program Files\Sofa-1.0.4\examples\Demos\2d.scn

The second one was my own.



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard