GL Structure with XML

nilsporrmann's picture

Hello there, I am currently trying to use an XML to sent point information to the GL Point Structure patch. I somewhat cant get the structure right. Either the patch shows no point at all or all in the origin. Can anybody help me on this? Thanks. N

cwright's picture
provisional

can you provide the xml you're using?

nilsporrmann's picture
xml

here it is. i am actually trying to get a number of points positioned but this is the stripped down version thanks

PreviewAttachmentSize
tetra2.xml_.zip638 bytes

cwright's picture
elements

You're going to want your xml to look something like this:

<?xml version="1.0"?>
<test>
      <p1>
        <X>0.0</X>
        <Y>0.0</Y>
        <Z>0.0</Z>
      </p1>
      <p2>
        <X>0.5</X>
        <Y>0.5</Y>
        <Z>0.0</Z>
      </p2>
      <p3>
        <X>0.5</X>
        <Y>0.0</Y>
        <Z>0.0</Z>
      </p3>
</test>

However, this doesn't work either (not sure why... probably a bug in gltools? I'll have to check it out)

nilsporrmann's picture
xml fixed

hey i am getting a result from this. thank you very much for the help. will check if i can get a result for the other GL structures. thanks again.