Skip to content

feat(cli): rvt-gltf --progress, with saved-graphics stages in WalkerControl #1072

Closed

Description

@n3ur0m4n

rvt-gltf gives no sign of life while it converts: 2024_Core_Interior.rvt with --saved-meshes takes about 5 s, and larger project files take much longer. A front end that runs it (a viewer, a batch job) cannot tell progress from a hang, and cannot stop it early.

The library already has the mechanism: rvt::control::WalkerControl carries a progress callback and a cancel token, and rvt-elements --progress prints progress: <stage> <done>/<total>. But the export behind rvt-gltf walks the elements through iter_elements_with_limits, so it reports nothing, and reading saved graphics (--saved-meshes), about half of the time on Core Interior, has no stage at all.

Proposal:

  • Stage::SavedGraphics (reading the saved graphics and their materials, 0 then 1/1) and Stage::SavedMeshes (one report per element meshed, done/total are elements);
  • *_with_control variants of native_saved_scene::extract_at_detail, ifc::saved_meshes::attach and RvtDocExporter::export_with_mode_and_limits, the existing functions calling them with the default control;
  • rvt-gltf --progress, printing the same lines as rvt-elements --progress.

Output is unchanged with or without the flag. A pull request follows.

Activity

  1. added a commit that references this issue on Oct 27, 2026
    e5846fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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