<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi everybody,</p>
    <p>I tried to run the kidney example under:</p>
    <p>GateContrib-master/misc/geometry_STL/kidneys and got the
      following error:</p>
    <p>Core-0] Initialization of geometry<br>
      [G4-cerr] STL file corrupted: number of facets do not correspond
      to file size.<br>
      ^Z<br>
      [2]+  Stopped                 Gate mac/main.mac</p>
    <p>I am getting the same message for the Suzanne example.<br>
    </p>
    <p>Next I tried to use STL files (binary and asci STLs attached)
      instead of the "LSO" box in
      GateContrib-master/imaging/PET/PET_CylindricalPET_System.mac by
      doing the following editing:</p>
    <p>#       LSO layer<br>
      /gate/crystal/daughters/name                  LSO<br>
      #/gate/crystal/daughters/insert                box<br>
      /gate/crystal/daughters/insert                tessellated<br>
      /gate/LSO/placement/setTranslation            -0.75 0.0 0.0 cm<br>
      /gate/LSO/geometry/setPathToSTLFile            lsobox.stl<br>
      #/gate/LSO/geometry/setXLength                 15 mm<br>
      #/gate/LSO/geometry/setYLength                 3.0 mm<br>
      #/gate/LSO/geometry/setZLength                 3.8 mm<br>
      /gate/LSO/setMaterial                         LSO<br>
      /gate/LSO/vis/setColor                        red</p>
    <p>This example does not run anymore (it does when it uses the
      original box) and I am getting:</p>
    <p>I/O warning : failed to load external entity "./Materials.xml"<br>
      I/O warning: Discard the previous warning if your simulation
      doesn't transport OPTICAL PHOTONS. <br>
      Otherwise, please copy the ./Materials.xml file from the
      gate-source directory in the directory where you run your main
      macro.<br>
      I/O warning : failed to load external entity "./Materials.xml"<br>
      I/O warning: Discard the previous warning if your simulation
      doesn't transport OPTICAL PHOTONS. <br>
      Otherwise, please copy the ./Materials.xml file from the
      gate-source directory in the directory where you run your main
      macro.<br>
      I/O warning : failed to load external entity "./Materials.xml"<br>
      I/O warning: Discard the previous warning if your simulation
      doesn't transport OPTICAL PHOTONS. <br>
      Otherwise, please copy the ./Materials.xml file from the
      gate-source directory in the directory where you run your main
      macro.<br>
      I/O warning : failed to load external entity "./Materials.xml"<br>
      I/O warning: Discard the previous warning if your simulation
      doesn't transport OPTICAL PHOTONS. <br>
      Otherwise, please copy the ./Materials.xml file from the
      gate-source directory in the directory where you run your main
      macro.<br>
      <br>
       *** Break *** illegal instruction<br>
      [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug
      info)<br>
      [<unknown binary>] (no debug info)<br>
      [/opt/contrib-appleclang/gate-8.2/bin/Gate]
      GateSystemComponent::SetCreator(GateVVolume*) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UIcommand::DoIt(G4String) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UImanager::ApplyCommand(char const*) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UIbatch::ExecCommand(G4String const&) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UIbatch::SessionStart() (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UImanager::ExecuteMacroFile(char const*) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) (no
      debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UIcommand::DoIt(G4String) (no debug info)<br>
      [/opt/contrib-appleclang/geant4-sersh/lib/libG4intercoms.dylib]
      G4UImanager::ApplyCommand(char const*) (no debug info)<br>
      [/opt/contrib-appleclang/gate-8.2/bin/Gate] main (no debug info)<br>
      [/usr/lib/system/libdyld.dylib] start (no debug info)<br>
      [<unknown binary>] (no debug info)<br>
      [LSO::IsValidAttachmentRequest]:<br>
          The volume creator ('?sveta@bladerunner/.../PET$ <br>
    </p>
    <p>Does anybody have a working example with STL geometry?</p>
    <p>Thank you,</p>
    <p>Svetlana<br>
    </p>
    <div class="moz-cite-prefix">On 8/8/19 5:09 PM, Matthew Strugari
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:81AE40F6-5A1B-4393-993C-555BE8CD8C5C@dal.ca">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="ltr"><span></span></div>
      <div dir="ltr">Hi Svetlana,
        <div><br>
        </div>
        <div>Take a look at the section <span style="font-size: medium;
            background-color: rgba(255, 255, 255, 0);">How to build a
            "tessellated" volume on the wiki page </span><a
href="http://wiki.opengatecollaboration.org/index.php/Users_Guide:Defining_a_geometry"
            moz-do-not-send="true">http://wiki.opengatecollaboration.org/index.php/Users_Guide:Defining_a_geometry</a>.
          The sample code is from the <span style="background-color:
            rgba(255, 255, 255, 0);">GateContrib GitHub repository as
            outlined on the wiki.</span><br>
          <br>
          Cheers,</div>
        <div>Matthew</div>
        <div><br>
        </div>
        <div>--</div>
        <div>Matthew Strugari</div>
        <div>Biomedical Translational Imaging Centre - BIOTIC,</div>
        <div>5890 University Ave, </div>
        <div>Halifax, NS, B3K 6R8<br>
          <div dir="ltr"><br>
          </div>
          <div dir="ltr"><br>
            On Aug 8, 2019, at 6:28 PM, Svetlana G. Shasharina <<a
              href="mailto:sveta@txcorp.com" moz-do-not-send="true">sveta@txcorp.com</a>>
            wrote:<br>
            <br>
          </div>
          <blockquote type="cite">
            <div dir="ltr"><span>Hello,</span><br>
              <span></span><br>
              <span>Is there a way to use an STL file for the detector
                geometry?</span><br>
              <span></span><br>
              <span>Thank you,</span><br>
              <span></span><br>
              <span>Sveta</span><br>
              <span></span><br>
              <span>-- </span><br>
              <span>Svetlana Shasharina                            | <a
                  href="mailto:sveta@txcorp.com" moz-do-not-send="true">
                  sveta@txcorp.com</a></span><br>
              <span>Vice-President of Computational Infrastructure |
                Tech-X Corporation</span><br>
              <span></span><br>
              <span>_______________________________________________</span><br>
              <span>Gate-users mailing list</span><br>
              <span><a
                  href="mailto:Gate-users@lists.opengatecollaboration.org"
                  moz-do-not-send="true">Gate-users@lists.opengatecollaboration.org</a></span><br>
              <span><a
href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
                  moz-do-not-send="true">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></span></div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Svetlana Shasharina                            | <a class="moz-txt-link-abbreviated" href="mailto:sveta@txcorp.com">sveta@txcorp.com</a>
Vice-President of Computational Infrastructure | Tech-X Corporation  </pre>
  </body>
</html>