Hm,

perhaps I should stop trying such things late in the evening! I thought the
error is by my OpenSG node creation.
I'll check it tonight. Thanks for the help!!!!

Greets,

Patrik

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andreas
Zieringer
Sent: Thursday, January 15, 2004 2:00 PM
To: opensg-users@lists.sourceforge.net
Subject: Re: [Opensg-users] Problem with SceneFileType


Hi Patrik,

just looked into your code. The edge indices must be incremented by one.

for(i = 0; (!is.eof()) && (i < edgeCount); ++i)
{
     is >> tmpEdge.vertex1 >> tmpEdge.vertex2;
     --tmpEdge.vertex1;
     --tmpEdge.vertex2;
     edgeVec.push_back(tmpEdge);
}

The indices calculation is wrong. Well my version is also wrong but I
could load the bunny example file.

v1 = edge1.vertex1;
v2 = edge1.vertex2;
v3 = edge2.vertex1;
if (v3 == v1 || v3 == v2)
     v3 = edge2.vertex2;

Hope it helps,

Andreas

> Hi all,
>
> for understanding OpenSg better I've tried building a simple loader for
GTS
> (http://gts.sourceforge.net). But after reading the file my application
> crashes. It would be nice giving me an hint where my error is (sources
> attached). At the moment the class is just for including it to an app -
not
> to OpenSG (but will be after fixing)
>
> Best regards,
>
> Patrik




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to