Open pierrep opened 11 years ago
The behavior of these values is also counterintuitive to me, I would call it a big unless someone has a good argument for it :)
On Wednesday, October 23, 2013, Pierre Proske wrote:
When an ofPlanePrimitive (ofMesh::plane) is created, it is initialised with values for 'rows' and 'columns' to describe the plane. At the moment this seems to be out by 1, so that you end up creating a plane with rows-1 and columns-1 rows and columns respectively.
To test this, just try creating a plane with 1 row and 1 column, e.g. ofPlanePrimitive p = ofPlanePrimitive( 300, 300, 2, 2, OF_PRIMITIVE_TRIANGLE_STRIP ); p.drawWireframe();
You'll find that nothing is drawn. Bug present in latest github code.
— Reply to this email directly or view it on GitHubhttps://github.com/openframeworks/openFrameworks/issues/2627 .
When an ofPlanePrimitive (ofMesh::plane) is created, it is initialised with values for 'rows' and 'columns' to describe the plane. At the moment this seems to be out by 1, so that you end up creating a plane with rows-1 and columns-1 rows and columns respectively.
To test this, just try creating a plane with 1 row and 1 column, e.g. ofPlanePrimitive p = ofPlanePrimitive( 300, 300, 1, 1, OF_PRIMITIVE_TRIANGLE_STRIP ); p.drawWireframe();
You'll find that nothing is drawn. Bug present in latest github code.