You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(cli): rvt-gltf --progress, with saved-graphics stages in WalkerControl #1072
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
feat(cli): rvt-gltf --progress, with saved-graphics stages in WalkerC…