Skip to content

geometry_test: replace cvcapp singleton with fixture-local cvc::app - #13

Merged
transfix merged 1 commit into
masterfrom
cvc-singleton/geometry-test
May 2, 2026
Merged

transfix merged 1 commit into
masterfrom
cvc-singleton/geometry-test

Conversation

@transfix

@transfix transfix commented May 1, 2026

Copy link
Copy Markdown
Owner

Both GeometryTest and AlgorithmTest fixtures already expose a local cvc::app ctx; ~46 call sites still used the cvcapp singleton when calling sdf() and threading helpers. Replace cvcapp → ctx so both fixtures' tests exercise the same per-fixture app the geometries flow through.

Also captures this in the parallel-SDF lambda so it can refer to the fixture's ctx member.

Validation

  • Linux Debug build clean
  • ctest -R GeometryTest -j4: 69/69 passed
  • clang-format clean

Independent of #11 and #12; can land in any order.

Part of cvc-singleton-removal-plan.md (PR 8, geometry piece).

Both GeometryTest and AlgorithmTest fixtures already expose a local
`cvc::app ctx`; ~46 sites still used the cvcapp singleton when calling
sdf() and ctx.startThreadPooled/hasThread/threads/setThreadPoolSize.
Replace cvcapp -> ctx so both fixtures' tests exercise the same per-
fixture app the geometries flow through.

Also captures `this` in the parallel-SDF lambda so it can refer to
the fixture's ctx member.

Build clean; ctest -R GeometryTest 69/69 passed.

Part of cvc-singleton-removal-plan.md (PR 8 — geometry piece).
@transfix
transfix merged commit bcadc47 into master May 2, 2026
19 checks passed
@transfix
transfix deleted the cvc-singleton/geometry-test branch May 2, 2026 06:47
transfix added a commit that referenced this pull request Aug 28, 2026
* deploy-pages: install wasm recipes one-at-a-time (mirror cy-pca #13)

* cvcGL wasm demos: raise MAXIMUM_MEMORY to 4GB

Austin buildings' color/normal arrays hit a 140 MB vtkFloatArray during
mesh assembly; the default MAXIMUM_MEMORY sometimes lands short of that
once VTK's other buffers are in the heap and throws mid-scene. wasm32
addresses up to 4 GB — extend the growth ceiling so the full scene fits.
transfix added a commit that referenced this pull request Aug 28, 2026
* deploy-pages: install wasm recipes one-at-a-time (mirror cy-pca #13)

* cvcGL wasm demos: raise MAXIMUM_MEMORY to 4GB

Austin buildings' color/normal arrays hit a 140 MB vtkFloatArray during
mesh assembly; the default MAXIMUM_MEMORY sometimes lands short of that
once VTK's other buffers are in the heap and throws mid-scene. wasm32
addresses up to 4 GB — extend the growth ceiling so the full scene fits.

* cvc: broaden ImageMagick prefix fallback (autotools -7.Q16HDRI names)

The stock FindImageMagick module misses the autotools static-build library
names libMagick++-7.Q16HDRI.a / libMagickCore-7.Q16HDRI.a, which is what
the wasm cross-build (and any linux static build) produces. Result: on
wasm the whole ImageMagick pipeline was compiled out, and glTF-embedded
PNG textures failed with 'cvc::read_image: no handler can read'.

Generalize the WIN32 fallback: probe every canonical libMagick++ /
libMagickCore name (7, 7.Q16HDRI, 6.Q16HDRI, Windows CORE_RL_*) against
CMAKE_PREFIX_PATH / CMAKE_FIND_ROOT_PATH on all platforms, not just Win32.
transfix added a commit that referenced this pull request Aug 28, 2026
* deploy-pages: install wasm recipes one-at-a-time (mirror cy-pca #13)

* cvcGL wasm demos: raise MAXIMUM_MEMORY to 4GB

Austin buildings' color/normal arrays hit a 140 MB vtkFloatArray during
mesh assembly; the default MAXIMUM_MEMORY sometimes lands short of that
once VTK's other buffers are in the heap and throws mid-scene. wasm32
addresses up to 4 GB — extend the growth ceiling so the full scene fits.

* cvc: broaden ImageMagick prefix fallback (autotools -7.Q16HDRI names)

The stock FindImageMagick module misses the autotools static-build library
names libMagick++-7.Q16HDRI.a / libMagickCore-7.Q16HDRI.a, which is what
the wasm cross-build (and any linux static build) produces. Result: on
wasm the whole ImageMagick pipeline was compiled out, and glTF-embedded
PNG textures failed with 'cvc::read_image: no handler can read'.

Generalize the WIN32 fallback: probe every canonical libMagick++ /
libMagickCore name (7, 7.Q16HDRI, 6.Q16HDRI, Windows CORE_RL_*) against
CMAKE_PREFIX_PATH / CMAKE_FIND_ROOT_PATH on all platforms, not just Win32.

* cvc: link ImageMagick static-delegate closure via pkg-config

Probe pkg-config for the delegate closure (bz2/jpeg/png/webp/tiff/
freetype/xml2/lzma/sharpyuv/brotli) and link the ones the prefix
actually has. FindImageMagick's raw-libs path did not carry this,
so a static wasm link died with 'undefined symbol: BZ2_bzerror'.
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.

1 participant