Size Issue After STL image import

edited March 2015 in Library Questions

I wrote a program in Processing, to import a STL file and then rotate in 3D according to requirement. But I am facing a problem that the import image is very diminish in size.

Can you please help me to resolve this problem from my coding?

import toxi.geom.*;
import toxi.geom.mesh.*;

import toxi.processing.*;

TriangleMesh mesh;
ToxiclibsSupport gfx;

void setup() {
  size(displayWidth, displayHeight,P3D);
  mesh=(TriangleMesh)new STLReader().loadBinary(sketchPath("check.stl"),STLReader.TRIANGLEMESH);
  gfx=new ToxiclibsSupport(this);
}

void draw() {
  background(51);
  translate(width/2,height/2,0);
  rotateX(mouseY*0.01);
  rotateY(mouseX*0.01);

  gfx.mesh(mesh,false,10);
}

plane1

Answers

Sign In or Register to comment.