Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 04:04:26 pm
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Documentation addendum or constructor rewrite
Pages: [1]
Print
Author Topic: Documentation addendum or constructor rewrite  (Read 457 times)
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« on: 07. December 2010, 06:29:51 pm »

Marvin,

Note that the TriangleArray takes, as one of its constructors, the number of vertices in the array. The docs mention this, but a louder "THIS IS NOT THE NUMBER OF TRIANGLES AS YOU MIGHT EXPECT" would be appreciated.

That, or have the constructor take the number of triangles in the array, instead of the number of points.

A nitpick, but I just spent a couple of hours debugging a stupid mistake on my part.

Best,
-Chris
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 07. December 2010, 08:30:26 pm »

Well, the docs pretty clearly say, that it is the vertex number (right from the parameter name). And it is just the same as in the other GeometryArrays, where vertex count makes more sense throughout the whole API.

I have added a note to the docs though.

Marvin
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #2 on: 07. December 2010, 10:45:47 pm »

Thank you!
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic