Toxiclibs processing: hide axes / normals when drawing trianglemesh
I am using toxiclibs to draw an imported .stl binary in a grid like this:
ToxiclibsSupport gfx;
TriangleMesh mesh;
void setup(){
mesh = (TriangleMesh)new STLReader().loadBinary(
sketchPath("/data/3dmodels/gun.stl"), STLReader.TRIANGLEMESH);
gfx = new ToxiclibsSupport(this);
}
void draw(){
translate(width/2, height/2, 300);
gfx.origin(new Vec3D(), 100);
noStroke();
fill(fxColor.getRed(), fxColor.getGreen(), fxColor.getBlue());
gfx.mesh(model, false, 0);
translate(-width/2, -height/2, -300);
}
Toxiclibs shows xyz axes by default as shown below:
I want to disable drawing of these axes, but I can't find anything related.
Thank.
+3
source to share
1 answer
Can't you get rid of the challenge gfx.origin()
? According to the Toxiclibs API , this is what draws the axes.
+2
source to share