Skip to content

VTK PolyData output uses invalid NumberOfString attribute #5022

@WeiqunZhang

Description

@WeiqunZhang
  • Type: Correctness / Output format compatibility
  • Severity: Low
  • Component: EB VTK writer
  • Location:
    • Src/EB/AMReX_EBToPVD.cpp:204

Problem

WriteEBVTP emits:

NumberOfString="0"

The VTK PolyData attribute name is NumberOfStrips.

Impact

  • Output may be rejected by strict VTK readers/parsers.
  • Avoidable interoperability problems in downstream visualization tools.

Suggested patch

Fix the attribute name.

--- a/Src/EB/AMReX_EBToPVD.cpp
+++ b/Src/EB/AMReX_EBToPVD.cpp
@@
-         << "NumberOfLines=\"0\" NumberOfString=\"0\" NumberOfPolys=\" " // NOLINT
+         << "NumberOfLines=\"0\" NumberOfStrips=\"0\" NumberOfPolys=\" " // NOLINT

Prepared by Codex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions