let vertices = [];\r
let faces = [];\r
\r
+ this.numPointsWidth = numPointsWidth;\r
+ this.numPointsHeight = numPointsHeight;\r
+\r
/**\r
* distance between two vertices horizontally/vertically\r
* divide by the number of points minus one\r
// Get the bounding springs and add them to the needed springs\r
// TODO: optimize\r
\r
- const numPointsX = 10;\r
- const numPointsY = 10;\r
+ const numPointsX = this.numPointsWidth;\r
+ const numPointsY = this.numPointsHeight;\r
const numFacesX = numPointsX - 1;\r
const numFacesY = numPointsY - 1;\r
\r