Homebrew tap for meshoptimizer – a mesh optimization library that makes meshes smaller and faster to render, including the gltfpack command-line tool.
You can install meshoptimizer directly with:
brew install sharkyrawr/meshoptimizer/meshoptimizerOr tap the repository first:
brew tap sharkyrawr/meshoptimizer
brew install meshoptimizerThis formula provides:
gltfpack: Command-line tool to optimize glTF files and compress geometry/textures.libmeshoptimizer: Shared library for mesh optimization algorithms.meshoptimizer.h: C/C++ API header file.- CMake package config: Find and link via
find_package(meshoptimizer CONFIG REQUIRED).
gltfpack -i scene.gltf -o scene.glbfind_package(meshoptimizer CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE meshoptimizer::meshoptimizer)clang++ main.cpp $(pkg-config --cflags --libs meshoptimizer 2>/dev/null || echo "-lmeshoptimizer") -o mainTo test the formula locally:
brew style Formula/meshoptimizer.rb
brew audit --strict --online Formula/meshoptimizer.rb
brew test Formula/meshoptimizer.rb