FlexCLI is a C++/CLI interface to access the physics engine NVidia Flex from the .Net environment. Furthermore the repository contains an implementation of FlexCLI in the form of a plugin for Grasshopper in Rhino3D. This plugin - called FlexHopper - provides the possiblity to use NVidia Flex physics simulation - via the FlexCLI pipeline - in the CAD software Rhino.
FlexCLI is built against NVidia Flex release 1.1.0. NVidia Flex is patented property of NVidia. The author of this repository did not create or change NVidia proprietary code, nor is he the author of NVidia Flex. The author of this repository is the author of FlexCLI and FlexHopper only, both of which can found in the respective folders. The GPL-3.0 license mentioned in this repo applies only to FlexCLI and FlexHopper and not to Nvidia proprietary code (anything inside the folder FlexCore110). There's a respective license to be found in that folder.
For more information on NVidia Flex go here: https://developer.nvidia.com/flex and https://developer.nvidia.com/nvidia-flex-110-released
FlexCLI runs on x64 architectures only. It was built against .Net 4.5.2
Flex.sln contains FlexCLI and FlexHopper. Upon building the solution all compiled files will be stored inside "bin". Make sure to set your compiler platform to x64.
FlexHopper was tested with Rhino 6 64bit and Grasshopper 1.0.0076
FlexHopper Tutorials:
https://vimeo.com/253491269
https://www.youtube.com/watch?v=DZk0_vd-H60&list=PLw7gQzl_I29Z8oHCrPGXgNdwnULjqzUcz
Contact info:
benjamin@felbrich.com
flexhopper@felbrich.com
https://www.linkedin.com/in/benjamin-felbrich/
https://twitter.com/BFelbrich
Please follow the instructions under one of these options:
Option 1: Only use FlexHopper
Option 2: Use FlexCLI to write your own implementation of NVidia Flex in .Net
Option 3: Download, compile and edit this repo
FlexHopper only works with Rhino 6 64bit.
If you receive an error message saying that FlexCLI or one of its dependecies could not be loaded, make sure to:
A. Unlock all FlexHopper related files in the Library folder (Right click -> properties)
B. Update your Rhino 6 to the latest version.
C. Start up Rhino 6 in 64bit mode
If your machine crashes upon resetting the FlexHopper engine:
A. Make sure your computer fulfills the hardware requirements (see above)
B. Consider reducing the memory your FlexHopper requires by adjusting the memQ input in the Flex Solver Options accordingly
Felbrich, Benjamin. (2019, July 30). HeinzBenjamin/FlexCLI: FlexCLI - FlexHopper (Version v1.1.2). Zenodo. http://doi.org/10.5281/zenodo.3355744
BibTex
@misc{heinzbenjamin_2019_3355744,
author = {Felbrich, Benjamin},
title = {HeinzBenjamin/FlexCLI: FlexCLI - FlexHopper},
month = jul,
year = 2019,
doi = {10.5281/zenodo.3355744},
url = {https://doi.org/10.5281/zenodo.3355744}
}