Someone requested by email the Processing code for importing STL files to HE_Mesh, apparently its not on the web, so here is mine, download the zip from here. I’ve formatted it to look like a typical HE_Mesh tutorial. Also find it copied below. 
import wblut.math.*;
import wblut.processing.*;
import wblut.core.*;
import wblut.*;
import wblut.hemesh.*;
import wblut.geom.*;
// Toxiclibs for the import stl and save color stl
import toxi.geom.*;
import toxi.geom.mesh.*;
import toxi.math.*;
import toxi.processing.*;


String stlFilename = "yourSTLfilename.stl";
HE_Mesh mesh;
WB_Render render;

void setup() {
  size(800,800, P3D);
  mesh = new HE_Mesh(fromStl(stlFilename));
  render=new WB_Render(this); 
}

void draw(){
  background(230);
  directionalLight(255, 255, 255, 1, 1, -1);
  directionalLight(127, 127, 127, -1, -1, 1);
  translate(400, 400, 0);
  scale(2,2,2);
  rotateY(mouseX*1.0f/width*TWO_PI);
  rotateX(mouseY*1.0f/height*TWO_PI);
  stroke(0);
  render.drawEdges(mesh);
  noStroke();
  render.drawFaces(mesh); 
}



HEC_FromFacelist fromStl(String stlName) { 
  println("Start Build");
  WETriangleMesh wemesh = (WETriangleMesh) new STLReader().loadBinary(sketchPath(stlName), STLReader.WEMESH);
  //convert toxi mesh to a hemesh. Thanks to wblut for personally coding this part during #GX30
  int n=wemesh.getVertices().size();
  ArrayList<WB_Point3d> points=new ArrayList<WB_Point3d>(n);
  for (Vec3D v : wemesh.getVertices()) { 
      points.add(new WB_Point3d(v.x,v.y,v.z));
  }
  int[] toxiFaces=wemesh.getFacesAsArray();
  int nf=toxiFaces.length/3;
  int[][] faces=new int[nf][3];
  for(int i=0;i<nf;i++){
   faces[i][0]=toxiFaces[i*3];
   faces[i][1]=toxiFaces[i*3+1];
   faces[i][2]=toxiFaces[i*3+2]; 
  }
  HEC_FromFacelist ff=new HEC_FromFacelist().setVertices(points).setFaces(faces);
  return ff;
}

Someone requested by email the Processing code for importing STL files to HE_Mesh, apparently its not on the web, so here is mine, download the zip from here. I’ve formatted it to look like a typical HE_Mesh tutorial. Also find it copied below. 

import wblut.math.*;
import wblut.processing.*;
import wblut.core.*;
import wblut.*;
import wblut.hemesh.*;
import wblut.geom.*;
// Toxiclibs for the import stl and save color stl
import toxi.geom.*;
import toxi.geom.mesh.*;
import toxi.math.*;
import toxi.processing.*;


String stlFilename = "yourSTLfilename.stl";
HE_Mesh mesh;
WB_Render render;

void setup() {
  size(800,800, P3D);
  mesh = new HE_Mesh(fromStl(stlFilename));
  render=new WB_Render(this); 
}

void draw(){
  background(230);
  directionalLight(255, 255, 255, 1, 1, -1);
  directionalLight(127, 127, 127, -1, -1, 1);
  translate(400, 400, 0);
  scale(2,2,2);
  rotateY(mouseX*1.0f/width*TWO_PI);
  rotateX(mouseY*1.0f/height*TWO_PI);
  stroke(0);
  render.drawEdges(mesh);
  noStroke();
  render.drawFaces(mesh); 
}



HEC_FromFacelist fromStl(String stlName) { 
  println("Start Build");
  WETriangleMesh wemesh = (WETriangleMesh) new STLReader().loadBinary(sketchPath(stlName), STLReader.WEMESH);
  //convert toxi mesh to a hemesh. Thanks to wblut for personally coding this part during #GX30
  int n=wemesh.getVertices().size();
  ArrayList<WB_Point3d> points=new ArrayList<WB_Point3d>(n);
  for (Vec3D v : wemesh.getVertices()) { 
      points.add(new WB_Point3d(v.x,v.y,v.z));
  }
  int[] toxiFaces=wemesh.getFacesAsArray();
  int nf=toxiFaces.length/3;
  int[][] faces=new int[nf][3];
  for(int i=0;i<nf;i++){
   faces[i][0]=toxiFaces[i*3];
   faces[i][1]=toxiFaces[i*3+1];
   faces[i][2]=toxiFaces[i*3+2]; 
  }
  HEC_FromFacelist ff=new HEC_FromFacelist().setVertices(points).setFaces(faces);
  return ff;
}
Processing success with exporting color stl files, for the purpose of printing in multicolor which is on discount this month. Generative colour meshes/ objects coming soon :)

Processing success with exporting color stl files, for the purpose of printing in multicolor which is on discount this month. Generative colour meshes/ objects coming soon :)