[vtkusers] how to iterate over extracted edges?

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Thu Jan 14 18:17:48 EST 2010


On 15/01/10 00:05:56, lynx.abraxas at freenet.de wrote:
> Yes it does. I was missing extractEdges->Update().
>
> Thanks David! You helped me a lot.
> Lynx

However  I  just  noticed  a  problem.  With  the attached dataset (close to a
octaedron) I get 13 lines/angle one close to 180° why's that?
Here's the output:


Creating delaunay triangulation... done.
There are 13 line cells.
Computing angles... 
179.929; 89.9738; 90.018; 90.2824; 89.7877; 90.0241; 89.9026; 89.9882; 90.0273; 90.0071; 90.001; 89.9956; 89.992; 


Thanks,
Lynx

-------------- next part --------------
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <UnstructuredGrid>
    <Piece NumberOfPoints="6"                    NumberOfCells="4"                   >
      <PointData>
      </PointData>
      <CellData>
      </CellData>
      <Points>
        <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0.94451862738"        RangeMax="0.95413984632"        offset="0"                   />
      </Points>
      <Cells>
        <DataArray type="Int32" Name="connectivity" format="appended" RangeMin=""                     RangeMax=""                     offset="136"                 />
        <DataArray type="Int32" Name="offsets" format="appended" RangeMin=""                     RangeMax=""                     offset="204"                 />
        <DataArray type="UInt8" Name="types" format="appended" RangeMin=""                     RangeMax=""                     offset="256"                 />
      </Cells>
    </Piece>
  </UnstructuredGrid>
  <AppendedData encoding="base64">
   _AQAAAACAAABIAAAAUwAAAA==eJwBSAC3/9rJsjkg9Di5gUJ0vyU+aLlz0XG/YOeot+jLcb+BabW6FHUnuBrScT8cH285cezEuE61VjtlInI/IrBrOYeDxbeHg8W4AD90P1BAI2U=AQAAAACAAABAAAAAIQAAAA==eJxjYmBgYGaAABYgZgJiRiifGYphYqxIapihfAAE1AApAQAAAACAAAAQAAAAEwAAAA==eJxjYWBg4ABiHiAWAGIAAVAAKQ==AQAAAACAAAAEAAAADAAAAA==eJzj4uLiAgAAaAAp
  </AppendedData>
</VTKFile>


More information about the vtkusers mailing list