Skip to content

Fix Qhull convex generation (second attempt) - #12

Merged
arntanguy merged 5 commits into
masterfrom
revert-11-revert-10-fix-convex-generation
Jul 6, 2026
Merged

Fix Qhull convex generation (second attempt)#12
arntanguy merged 5 commits into
masterfrom
revert-11-revert-10-fix-convex-generation

Conversation

@arntanguy

@arntanguy arntanguy commented Jul 5, 2026

Copy link
Copy Markdown

Reverts #11

So, as it turns out, we need a combination of both the original method implemented by @ThomasDuvinage and the one I tried in #10. That is:

  • For the same version of Qhull 2022.2 (8.0.2) it behaves differently on Ubuntu 22.04 and Nix:
    • On Ubuntu 22.04, we need to use the old c-style stream qhull.qh()->fout = out_stream;
    • On Nix, and probably more recent Ubuntu versions, we need to use the C++ stream interface std::stringstream output_stream; qhull.setOutputStream(&output_stream);

For now I could not find a reliable way to detect which should be used.

Useful context:

@mergify

mergify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@arntanguy
arntanguy force-pushed the revert-11-revert-10-fix-convex-generation branch from 9fc76a5 to c7d1784 Compare July 5, 2026 09:33
@arntanguy
arntanguy force-pushed the revert-11-revert-10-fix-convex-generation branch from 08082a4 to 8842b60 Compare July 5, 2026 09:36
@ThomasDuvinage

Copy link
Copy Markdown

Hello @arntanguy,
It also worth to mention that the current implementation is not compiling on windows for this specific line.

@arntanguy

Copy link
Copy Markdown
Author

Hello @arntanguy, It also worth to mention that the current implementation is not compiling on windows for this specific line.

So we would need USE_LEGACY_QHULL_STREAM=OFF (modern c++ streams) on windows?

@arntanguy
arntanguy merged commit 6dbc4e4 into master Jul 6, 2026
37 checks passed
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.

2 participants