<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 31/07/2013 14:15, Pascal Buehler a
      écrit :<br>
    </div>
    <blockquote
cite="mid:OF7D2462B6.ECC75719-ONC1257BB9.0042D0AB-C1257BB9.00435F14@ch.sauter-bc.com"
      type="cite"><font face="sans-serif" size="2">Hi there, my name is
        Pascal, </font>
      <br>
      <br>
      <font face="sans-serif" size="2">i want to load a STEP file into
        Scilab.
        Now, my problem is to seperate the koordinates from the String!</font>
      <br>
      <font face="sans-serif" size="2">I tried various things but non of
        the
        is satifying. </font>
      <br>
      <font face="sans-serif" size="2">the goal ist to make the
        koordinates
        from string into a matrix of nubers and to display in a figure.</font>
      <br>
      <font face="sans-serif" size="2">Anyone who knows an elegant way?</font>
      <br>
    </blockquote>
    <tt>-->Cartesian_Point</tt><tt><br>
    </tt><tt> Cartesian_Point  =</tt><tt><br>
    </tt><tt>!#1326=CARTESIAN_POINT('',(0.,0.,0.));                                   
      !</tt><tt><br>
    </tt><tt>.../...</tt><tt><br>
    </tt><tt>!                                                                        
      !</tt><tt><br>
    </tt><tt>!#1383=CARTESIAN_POINT('centre
      point',(90.,75.,10.));                     !</tt><tt><br>
    </tt><br>
    How do you want to manage the 'centre point' attribute, as well as
    the<br>
    "#nnnn" identifier?<br>
    To grab the 3 coordinates from each of these CARTESIAN_POINT line,
    you may use:<br>
    <br>
    <pre style="font-style: normal; font-size: 12px;"><big><tt><span style="color:rgb(0,0,0);">points</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(74,85,219);">[</span></tt><tt><span style="color:rgb(74,85,219);">]</span></tt><tt><span style="color:rgb(0,0,0);">;</span></tt><tt>
</tt><tt><span style="color:rgb(160,32,240);">for</span></tt><tt> </tt><tt><span style="color:rgb(0,0,0);">cpd</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(0,0,0);">Cartesian_Point</span></tt><tt><span style="color:rgb(92,92,92);">'</span></tt><tt>
    </tt><tt><span style="color:rgb(74,85,219);">[</span></tt><tt><span style="color:rgb(0,0,0);">i</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(0,0,0);">i</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(0,0,0);">m</span></tt><tt><span style="color:rgb(74,85,219);">]</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(255,0,51);">regexp</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(0,0,0);">cpd</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(188,143,143);">/\d{1,}\.\d*/</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(0,0,0);">;</span></tt><tt>
    </tt><tt><span style="color:rgb(0,0,0);">points</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(255,170,0);">$</span></tt><tt><span style="color:rgb(92,92,92);">+</span></tt><tt><span style="color:rgb(188,143,143);">1</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(255,170,0);">:</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(0,0,0);">m</span></tt><tt><span style="color:rgb(92,92,92);">.'</span></tt><tt><span style="color:rgb(0,0,0);">;</span></tt><tt>
</tt><tt><span style="color:rgb(160,32,240);">end</span></tt><tt>
</tt><tt><span style="color:rgb(0,0,0);">points

</span></tt></big></pre>
    HTH<br>
    Samuel<br>
    <br>
  </body>
</html>