public static BoxHelper Create(Renderer renderer, Object3D o) { var mat = new LineBasicMaterial(renderer) { Diffuse = new Color(0xffff00) }; var geo = new Geometry(); var boxHelper = new BoxHelper(geo, mat); boxHelper.o = o; boxHelper.Update(); return boxHelper; }
public static BoxHelper Create(Renderer renderer, Object3D o) { var mat = new LineBasicMaterial(renderer) { Diffuse = new Color(0xffff00) }; var geo = new Geometry(); var boxHelper = new BoxHelper(geo, mat); boxHelper.o = o; boxHelper.Update(); return(boxHelper); }