示例#1
0
 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;
 }
示例#2
0
        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);
        }