Skip to content

Commit

Permalink
Merge pull request RobotWebTools#61 from Vegekou/patch-2
Browse files Browse the repository at this point in the history
Correction on measure unit for cellSize
  • Loading branch information
rctoris committed Feb 14, 2014
2 parents 8b524e2 + 06e24f2 commit 3f00bbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
*
* @constructor
* @param options - object with following keys:
* * size (optional) - the size of the grid
* * size (optional) - The number of cells of the grid
* * color (optional) - the line color of the grid, like '#cccccc'
* * lineWidth (optional) - the width of the lines in the grid
* * cellSize (optional) - the size of the cell in the grid
* * cellSize (optional) - The length, in meters, of the side of each cell
*/
ROS3D.Grid = function(options) {
options = options || {};
var size = options.size || 50;
var size = options.size || 10;
var color = options.color || '#cccccc';
var lineWidth = options.lineWidth || 1;
var cellSize = options.cellSize || 50;
var cellSize = options.cellSize || 1;

// create the mesh
THREE.Mesh.call(this, new THREE.PlaneGeometry(size, size, cellSize, cellSize),
THREE.Mesh.call(this, new THREE.PlaneGeometry(size*cellSize, size*cellSize, size, size),
new THREE.MeshBasicMaterial({
color : color,
wireframe : true,
Expand Down

0 comments on commit 3f00bbc

Please sign in to comment.