Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified PointData and CellData VTK export #1389

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JonasBreuling
Copy link
Contributor

@JonasBreuling JonasBreuling commented Jan 23, 2023

This pr adds the possibility to export BEZIER curves and cell as *.vtu files. Visualization via paraview requires special treatment of the PointData and CellData fields RationalWeights and HigherOrderDegrees, respectively, see paraview issue.

For both fields the corresponding *.xml files have to be of the form

<PointData RationalWeights="RationalWeights">
  <DataArray type="Float64" Name="RationalWeights">
    1 
    1 
    1 
    1 
    0.70710678118
    0.70710678118
    0.70710678118
    0.70710678118
    1
  </DataArray>
</PointData>

and

<CellData HigherOrderDegrees="HigherOrderDegrees">
  <DataArray type="Float64" Name="HigherOrderDegrees" NumberOfComponents="3">
    2 
    2 
    0
  </DataArray>
</CellData>

This pr

  1. adds the cell types "VTK_BEZIER_CURVE", "VTK_BEZIER_TRIANGLE", etc.
  2. passes the PointData and CellData names to exported *.xml files.

This is necessary, since vtk requires HigherOrderDegrees and
RationaLWeights as attributes of CellData and PointData, respectively.
@JonasBreuling
Copy link
Contributor Author

Strangely enough, the black test fails. No error message appears on my local machine.

Jonas Harsch and others added 7 commits April 12, 2023 18:57
The current default value is raised to version 2.2 since a version<2.0
does not support new edges ordering of VTK_BEZIER_HEXAHEDRON cells.
add version 2.2  in vtu reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants