HE_Mesh* is a Java library for creating and manipulating polygonal meshes. Containing no display functionality of its own, it is meant to be used with Processing.
My code quality warnings for the constructs are doubly valid here. HE_Mesh is an after-hours hobby project aggregating years of code snippets and 3rd part libraries. It is by no means production strength, neither in robustness, performance, consistency or maintenance. Consider it a toy, playground, a sandbox** that allows me to explore a range of possibilities that I wouldn’t be able to otherwise. Friends*** asked me to share this toy, this library.
Since I cannot give you any guarantees or reliable support, the code I write for the HE_Mesh library is public domain. Very little in the library is invented by me. The knowledge required to create it is all out there.
* Full name: HE_Mesh, short name/tag: hemesh
** If you ever played in a sandbox, you will remember some of the nastier things hiding in the sand. The analogy is apt.
** With friends like that, who needs…
HE_Mesh, with the below exceptions, is dedicated to the public domain. To the extent possible under law, I, Frederik Vanhoutte, have waived all copyright and related or neighboring rights to HE_Mesh. This work is published from Belgium. (http://creativecommons.org/publicdomain/zero/1.0/)
The following classes are subject to the license agreement of their original authors, included in the source file:
The following packages are part of hemesh-external.jar and are subject to the license agreement of their original authors:
- wblut.external.constrainedDelaunay https://www2.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-56.html
- wblut.external.Delaunay https://github.com/visad/visad
- wblut.external.ProGAL http://www.diku.dk/~rfonseca/ProGAL/
- wblut.external.straightskeleton https://code.google.com/p/campskeleton/
- wblut.external.QuickHull3D https://www.cs.ubc.ca/~lloyd/java/quickhull3d.html
The modified code is available on request.
Installation for Processing
Processing documentation: How to Install a Contributed Library
If you want to keep up with the build of the day, manual installation is necessary.
Contributed libraries for Processing are installed inside the libraries subfolder of the sketchbook. If you don’t know where Processing saves your sketches you can check this in the File->Preferences… menu.
Inside the downloaded zip-file is a single directory hemesh with several subfolders . Unzip this folder to the libraries subfolder of your sketchbook. Make sure you retain the entire directory structure.
Always close the Processing IDE and delete your previous hemesh installation before installing a new version.
Setting up a HE_Mesh Processing sketch
This is my minimal framework for a Processing 3 sketch using HE_Mesh.