We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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);
}
Answers
Crossposted: http://stackoverflow.com/questions/28943674/colour-issue-after-exportation-of-stl-image-in-processing
where you can answer... we are in trouble that's y asking on forums..
oringinal image is