[vtkusers] (no subject)

Bill Lorensen bill.lorensen at gmail.com
Sun Dec 10 15:37:21 EST 2017


Just reverse the order of the face id's.


On Sun, Dec 10, 2017 at 1:32 PM,  <JFSLB at gmx.de> wrote:
> Dear Bill,
>
> Thanks for your quick reply. I have not tried building the example, but I am sure that it would display the same picture. Could you please point me to the correct ordering of faces?
>
> Greetings,
> Peter
>
>
> On 10.12.2017 15:56, Bill Lorensen wrote:
>> Try building this example and run with your data. For one thing, your
>> faces are ordered incorrectly.
>>
>> https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadUnstructuredGrid/
>>
>>
>> On Sun, Dec 10, 2017 at 5:30 AM,  <JFSLB at gmx.de> wrote:
>>> Dear VTK users,
>>> I am trying to generate a vtu file that contains a single cell of type VTK_POLYHEDRON. The file I generated loads successfully in paraview but two edges of one face are not renderred correctly. The wireframe is displayed corretly. The cell consists of seven polygonal faces. I have made sure that the surface is water tight and that every edge is used exactly twice. I have also inverted the orientation of the polygons but that did not improve the situation.
>>>
>>> Can someone see an error in the vtu file below?
>>>
>>> Thanks!
>>>
>>>
>>>
>>> <VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64">
>>> <UnstructuredGrid>
>>> <Piece NumberOfPoints="10" NumberOfCells="1">
>>> <CellData Scalars="level">
>>> <DataArray type="Float32" Name="level" format="ascii" RangeMin="0" RangeMax="6">
>>> 0
>>> </DataArray>
>>> </CellData>
>>> <Points>
>>> <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="ascii" RangeMin="-1" RangeMax="1">
>>> 0.0204729 -0.000857723 0.0396787
>>> 0.0206677 -0.000857723 0.038172
>>> 0.0212252 -0.000857723 0.038172
>>> 0.0212252 -0.000857723 0.0396787
>>> 0.0207424 0.0006489 0.038172
>>> 0.0207424 0.0006489 0.0387988
>>> 0.0206286 0.0006489 0.0396787
>>> 0.0212252 0.0006489 0.0396787
>>> 0.0212252 0.0006489 0.038172
>>> 0.0207501 -6.0656e-05 0.038172
>>> </DataArray>
>>> </Points>
>>> <Cells>
>>> <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" RangeMax="6">
>>> 0 1 2 3 4 5 6
>>> </DataArray>
>>> <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="7" RangeMax="7">
>>> 7 </DataArray>
>>> <DataArray type="UInt8" Name="types" format="ascii" RangeMin="42" RangeMax="42">
>>> 42
>>> </DataArray>
>>> <DataArray type="Int64" Name="faces" format="ascii" RangeMin="0" RangeMax="9">
>>> 7
>>> 4 3 2 1 0
>>> 5 8 7 6 5 4
>>> 5 1 2 8 4 9
>>> 4 7 3 0 6
>>> 4 3 7 8 2
>>> 3 4 5 9
>>> 5 0 1 9 5 6
>>> </DataArray>
>>> <DataArray type="Int64" Name="faceoffsets" format="ascii" RangeMin="38" RangeMax="38">
>>> 38
>>> </DataArray>
>>> </Cells>
>>> </Piece>
>>> </UnstructuredGrid>
>>> </VTKFile>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list