<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    can I convert a sgm file (generated from sgems software,
    <a class="moz-txt-link-freetext" href="http://sgems.sourceforge.net/">http://sgems.sourceforge.net/</a>) in vtk file? how?<br>
    Thank you<br>
    <br>
    Luca<br>
    <br>
    Il 20/07/2011 10.48, Stephane PLOIX ha scritto:
    <blockquote
cite="mid:OFE64C7760.C6D1DD21-ONC12578D3.002E3BCD-C12578D3.002FC652@notes.edfgdf.fr"
      type="cite">
      <br>
      <font face="sans-serif" size="2">Hi,</font>
      <br>
      <br>
      <font face="sans-serif" size="2">You could use the
        vtkMultiBlockDataSet
        structure with one block per object (look at the </font><font
        size="3">vtkMultiBlockMergeFilter
      </font><font face="sans-serif" size="2">to merge your objects into
        one vtkMultiBlockDataSet
        ). </font>
      <br>
      <font face="sans-serif" size="2">You will then have only one actor
        per
        &nbsp;vtkMultiBlockDataSet, which can speed up your rendering. </font>
      <br>
      <font face="sans-serif" size="2">You can still individually select
        one
        block from a multiblock.<br>
      </font>
      <br>
      <font face="sans-serif" size="2">Stephane<br>
        <br>
      </font>
      <table>
        <tbody>
          <tr valign="top">
            <td rowspan="2"><font face="sans-serif" size="2">&nbsp;</font><img
                src="cid:part1.01050105.04000000@planetek.it"><font
                face="sans-serif" size="2">
              </font>
            </td>
            <td><font face="sans-serif" size="1">&nbsp;</font>
            </td>
          </tr>
          <tr valign="top">
            <td><font color="#ff8100" face="Arial" size="1"><b>Stephane
                  PLOIX</b></font><font color="#ff8100" face="Arial"
                size="1"><b><br>
                  Pilote Op&eacute;rationnel - Visualisation scientifique</b></font><font
                color="#0062e1" face="Arial" size="1"><br>
                EDF - R&amp;D<br>
                SINETICS<br>
                1, Av du G&eacute;n&eacute;ral de Gaulle<br>
                92140 Clamart</font><font color="#0062e1"
                face="sans-serif" size="1"><br>
              </font>
              <br>
              <font color="#0062e1" face="Arial" size="1"><b><a class="moz-txt-link-abbreviated" href="mailto:stephane.ploix@edf.fr">stephane.ploix@edf.fr</a></b></font>
              <br>
              <font color="#0062e1" face="Arial" size="1">T&eacute;l. : +33 (0)
                1 47 65 51
                10</font>
            </td>
          </tr>
          <tr>
            <td valign="top"><font face="sans-serif" size="2">&nbsp;</font><img
                src="cid:part2.03050604.01050701@planetek.it"><font
                face="sans-serif" size="2">
              </font>
            </td>
            <td><font color="#0062e1" face="Arial" size="1">Un geste
                simple pour l'environnement,
                n'imprimez ce message que si vous en avez l'utilit&eacute;.</font></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <br>
      <br>
      <table width="100%">
        <tbody>
          <tr valign="top">
            <td width="40%"><font face="sans-serif" size="1"><b><a class="moz-txt-link-abbreviated" href="mailto:tmacedo29@gmail.com">tmacedo29@gmail.com</a></b>
              </font>
              <br>
              <font face="sans-serif" size="1">Envoy&eacute; par :
                <a class="moz-txt-link-abbreviated" href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a></font>
              <p><font face="sans-serif" size="1">19/07/2011 21:10</font>
              </p>
            </td>
            <td width="59%">
              <table width="100%">
                <tbody>
                  <tr valign="top">
                    <td>
                      <div align="right"><font face="sans-serif"
                          size="1">A</font></div>
                    </td>
                    <td><font face="sans-serif" size="1"><a class="moz-txt-link-abbreviated" href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a></font>
                    </td>
                  </tr>
                  <tr valign="top">
                    <td>
                      <div align="right"><font face="sans-serif"
                          size="1">cc</font></div>
                    </td>
                    <td><font face="sans-serif" size="1"><a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a></font>
                    </td>
                  </tr>
                  <tr valign="top">
                    <td>
                      <div align="right"><font face="sans-serif"
                          size="1">Objet</font></div>
                    </td>
                    <td><font face="sans-serif" size="1">Re: [vtkusers]
                        Fwd: VTK is completely
                        Slow</font></td>
                  </tr>
                </tbody>
              </table>
              <br>
              <table>
                <tbody>
                  <tr valign="top">
                    <td>
                      <br>
                    </td>
                    <td><br>
                    </td>
                  </tr>
                </tbody>
              </table>
              <br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <br>
      <tt><font size="2">Hi David,<br>
          <br>
          Would it make impossible to select each 3D entity? I mean, now
          I'm<br>
          able to select a cylinder and not all the objects.<br>
          Using just one mapper/actor will I be able to keep this
          selection?<br>
          <br>
          Regards<br>
          <br>
          On Tue, Jul 19, 2011 at 3:18 PM, David Doria
          <a class="moz-txt-link-rfc2396E" href="mailto:daviddoria@gmail.com">&lt;daviddoria@gmail.com&gt;</a>
          wrote:<br>
          &gt; On Tue, Jul 19, 2011 at 2:15 PM, Thiago Macedo
          <a class="moz-txt-link-rfc2396E" href="mailto:tmacedo29@gmail.com">&lt;tmacedo29@gmail.com&gt;</a>
          wrote:<br>
          &gt;&gt; Hi,<br>
          &gt;&gt;<br>
          &gt;&gt; I'm developing a CAD based software. At some point,
          the<br>
          &gt;&gt; app converts the 2D drawing into a 3D huge scene.<br>
          &gt;&gt; The main problem is: It's very slow!<br>
          &gt;&gt; I'm not using any complex algorithm neither complex
          structure.
          The<br>
          &gt;&gt; 'translation' between 2D and 3D is very fast, and
          creates basic<br>
          &gt;&gt; geometries. E.g..:<br>
          &gt;&gt; A hydraulic tube is converted into a cylinder
          (vtkCylinderSource),
          the<br>
          &gt;&gt; connection between 2 hydraulic tubes is a sphere
          (vtkSphereSource);<br>
          &gt;&gt; A 2D line is converted into a 3D line (vtkLine)<br>
          &gt;&gt; All of 3D entities has a mapper and an actor.<br>
          &gt;&gt; I'm working with a lot of (closer than million) 2D
          entities, and
          the<br>
          &gt;&gt; 3D scene is totally slow.<br>
          &gt;&gt; I've tried to use all tips wrote in the wiki (<br>
          &gt;&gt; <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/FAQ">http://www.vtk.org/Wiki/VTK/FAQ</a> - How to handle large
          data sets
          in VTK<br>
          &gt;&gt; ) and I have just a little improvement.<br>
          &gt;&gt; I searched into the books (v5) and was not able to
          find anything
          to<br>
          &gt;&gt; help me. I think it should be faster if I use simple
          structures
          like<br>
          &gt;&gt; cylinders and lines like I'm doing.<br>
          &gt;&gt; Is there a way to make it faster?<br>
          &gt;&gt;<br>
          &gt;&gt; Thank you in Advance<br>
          &gt;&gt; Best Regards<br>
          &gt;&gt;<br>
          &gt;&gt; --<br>
          &gt;&gt; Thiago B. Macedo<br>
          &gt;<br>
          &gt; "All of 3D entities has a mapper and an actor."<br>
          &gt;<br>
          &gt; I think that may be your problem. I would try useing the
          AppendFilter<br>
          &gt;
          (<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter</a>)
          to<br>
          &gt; create a single data set that you can create a single
          mapper/actor<br>
          &gt; from.<br>
          &gt;<br>
          &gt; See if that help and let us know.<br>
          &gt;<br>
          &gt; David<br>
          &gt;<br>
          <br>
          <br>
          <br>
          -- <br>
          Thiago B. Macedo<br>
          <br>
          Esta mensagem pode conter informa&ccedil;&atilde;o confidencial e/ou
          privilegiada.<br>
          Se voc&ecirc; n&atilde;o for o destinat&aacute;rio ou a pessoa autorizada a
          receber<br>
          esta mensagem, n&atilde;o pode usar, copiar ou divulgar as
          informa&ccedil;&otilde;es nela<br>
          contidas ou tomar qualquer a&ccedil;&atilde;o baseada nessas informa&ccedil;&otilde;es.<br>
          Se voc&ecirc; recebeu esta mensagem por engano, por favor, avise<br>
          imediatamente o remetente, respondendo o e-mail e em seguida
          apague-a.<br>
          Agrade&ccedil;o a sua coopera&ccedil;&atilde;o.<br>
          <br>
          This message may contain confidential and/or privileged
          information.<br>
          If you are not the addressee or authorized to receive this for<br>
          the addressee, you must not use, copy, disclose or take any
          action<br>
          based on this message or any information herein. If you have<br>
          received this message in error, please advise the sender
          immediately<br>
          by reply e-mail and delete this message. Thank you for your<br>
          cooperation.<br>
          _______________________________________________<br>
          Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at
          <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the VTK FAQ at:
          <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        </font></tt>
      <br>
      <font face="monospace"><br>
        <br>
        <br>
        Ce message et toutes les pi&egrave;ces jointes (ci-apr&egrave;s le 'Message')
        sont &eacute;tablis &agrave; l'intention exclusive des destinataires et les
        informations qui y figurent sont strictement confidentielles.
        Toute utilisation de ce Message non conforme &agrave; sa destination,
        toute diffusion ou toute publication totale ou partielle, est
        interdite sauf autorisation expresse.<br>
        <br>
        Si vous n'&ecirc;tes pas le destinataire de ce Message, il vous est
        interdit de le copier, de le faire suivre, de le divulguer ou
        d'en utiliser tout ou partie. Si vous avez re&ccedil;u ce Message par
        erreur, merci de le supprimer de votre syst&egrave;me, ainsi que toutes
        ses copies, et de n'en garder aucune trace sur quelque support
        que ce soit. Nous vous remercions &eacute;galement d'en avertir
        imm&eacute;diatement l'exp&eacute;diteur par retour du message.<br>
        <br>
        Il est impossible de garantir que les communications par
        messagerie &eacute;lectronique arrivent en temps utile, sont s&eacute;curis&eacute;es
        ou d&eacute;nu&eacute;es de toute erreur ou virus.<br>
        ____________________________________________________<br>
        <br>
        This message and any attachments (the 'Message') are intended
        solely for the addressees. The information contained in this
        Message is confidential. Any use of information contained in
        this Message not in accord with its purpose, any dissemination
        or disclosure, either whole or partial, is prohibited except
        formal approval.<br>
        <br>
        If you are not the addressee, you may not copy, forward,
        disclose or use any part of it. If you have received this
        message in error, please delete it and all copies from your
        system and notify the sender immediately by return message.<br>
        <br>
        E-mail communication cannot be guaranteed to be timely secure,
        error or virus-free.</font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>