Skip to content

Double bubbles sans toil and trouble: discrete circulation-preserving vortex sheets for soap films and foams

License

Notifications You must be signed in to change notification settings

nepluno/SoapFilm3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double bubbles sans toil and trouble: discrete circulation-preserving vortex sheets for soap films and foams

SoapFilm3D is an open source project for the physical simulation of soap films and bubbles. It runs on Mac OS X (either Intel or Apple Silicon), Linux, and Windows. The code is licensed under the Mozilla Public License v. 2.0.

We would like to hear from you if you appreciate this work.

The repository contains the test program accompanying the paper by Da et al., including the multimaterial mesh-based surface tracking library LosTopo. It also includes the curvature computation proposed in the article by Fei et al.

This program is built by standard procedures using CMake.

Houdini Plugin

The corresponding Houdini plugin BubbleH developed by Sergen Eren can be found in this repository.

Dependencies

The following dependencies are required:

On Mac OS X or Linux-based systems, most of the dependencies are either included, or can be easily installed with Homebrew or the APT package handling utility.

For using OpenMP with AppleClang on Mac OS X, please follow this guide to download the OpenMP run-time libraries and headers and put them into the corresponding system directories.

On Windows you may need manually download and install some of them.

Compilation

SoapFilm3D has been tested with Clang (under Mac OS X), and GCC 4.8+ (under Linux and Windows Subsystem for Linux (WSL)). Currently the MSVC compiler is partially supported without the FMMTL module.

To compile SoapFilm3D, you'll need CMake on Mac OS X or Linux.

  1. make a directory, say, build, with mkdir build, enter the build directory, type cmake ..
  2. Optionally you can adjust the options with ccmake .
  3. type make to compile the code. For speeding up the compilation process you may use make -j.

On Windows Subsystem for Linux (with GCC):.

  1. follow the guide to install VcXsrv on Windows
  2. run VcXsrv with the access control disabled
  3. under the WSL environment (assuming WSL has been installed following the guide), make sure OpenGL is accessible. You may enable OpenGL through sudo apt-get install ubuntu-desktop mesa-utils and check if the glxgears is runnable.
  4. under the WSL environment, make a directory, say, build, with mkdir build, enter the build directory, type cmake ..
  5. turn on the NO_SHADER option with ccmake.
  6. type make to compile the code. For speeding up the compilation process you may use make -j.

On Native Windows (with MSVC):

  1. open CMake-GUI, enter the correct directory for source code and build. Then click Configure, choose your installed version of the Microsoft Visual Studio.
  2. after configuration you may find several libraries not found (with notifications of errors), check the Advanced box and specify those missing header path and libraries manually. For example, if Eigen is missing, then please specify the EIGEN3_INCLUDE_DIR to the path of directory we provided. For the ones we have not provided, you need to download and compile them, and then specify the missing directories to the path containing your headers or compiled libraries. Please make sure you have picked the libraries corresponding to the architecture you have selected (say, 32-bit libraries for x86, and 64-bit libraries for x64).
  3. click generate after fixing all missing variables to generate your Visual Studio solution.
  4. open the Visual Studio solution and compile the code.
  5. before running the demo, all the compiled dynamic linking libraries (DLLs) for your dependencies should be accessible from your PATH environment variable that can be changed in system settings, or you may simply copy them into your System32 (x64) or SysWOW64 (x86) directories.

Since collecting and compiling the dependencies could be tricky for Windows, we provided some compiled libraries and DLLs for your convenient. You may find them in the zip file under the bin folder, which also contains a compiled executable (under Visual Studio 2015 and Windows 10).

Run the Demo

Running the executables without command line arguments will display usage information. All the data files for testing are located in the assets folder.

Please run the code using the project folder that containing everything (assets, code, etc.) as the working directory.

Citations

Da, Fang, et al. "Double bubbles sans toil and trouble: Discrete circulation-preserving vortex sheets for soap films and foams." ACM Transactions on Graphics (TOG) 34.4 (2015): 149. (http://www.cs.columbia.edu/cg/doublebubbles/)

Da, Fang, Christopher Batty, and Eitan Grinspun. "Multimaterial mesh-based surface tracking." ACM Trans. Graph. 33.4 (2014): 112-1. (http://www.cs.columbia.edu/cg/multitracker/)

Fei, Yun (Raymond), et al. "Addressing Troubles with Double Bubbles: Convergence and Stability at Multi-Bubble Junctions." arXiv preprint arXiv:1910.06402 (2019). (https://arxiv.org/abs/1910.06402)

About

Double bubbles sans toil and trouble: discrete circulation-preserving vortex sheets for soap films and foams

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages