2014.03.23

STL Viewer

I use Gary Hodgson’s stlviewer quite a bit, as it allows for a quick view of an STL file in your browser, and since I’ve always got a browser running, it’s often easier than launching yet anther app just to view a 3D model.

But one of the things that’s always bugged me about it was the fact that the build plate appeared to be 100mm x 100mm, which would be fine in 2010 if using a MakerBot Cupcake, but my RepRap has a 200mm x 200mm build surface…

STL Viewer

This is much better! My models over 100mm long/wide actually fit on the build plate instead of spilling over into space. Obviously if you’re using Gary’s online version you can’t really make changes, but I just run it locally from my hard drive, so I can easily hack at it.

STL Viewer

Just go into the js folder and in there is the thingiview folder, and open thingiview.js in your favorite text editor. Line 711 should look like this.


plane = new THREE.Mesh(new Plane(100, 100, 10, 10), 
  new THREE.MeshBasicMaterial({color:0xafafaf,wireframe:true}));

(Note: It’s all one line, but it’s wrapped here for readability.)

For the part that says new Plane(100, 100, 10, 10) just change it to new Plane(200, 200, 10, 10) and you’ll get a 200mm x 200mm canvas with which you can display your lovely STL file on.

(Obviously if you’re using MegaMax you should go a bit larger, perhaps 300mm x 300mm would be appropriate.)

Comments are closed.

« | »


buy the button:

Buy The Button