mrdoob/three.js — Issue #1142: Regarding custom mesh
Author: mmmovania
Created: 2012-01-19 18:45:49+00:00
State: open

Hi,
I am very new to WebGL and Three.js is a wonderful library to work on. I am trying to render a simple mesh but it gives me an error saying this
Uncaught TypeError: Cannot read property 'position' of undefined Three,js line: 61
My geometry is created like this, note that this is an exact copy of my C++ working code so there is no problem with positions or indices.
[code]
var geometry = new THREE.Geometry();
//Fill in vertices of cloth mesh
for(var j=0;j