[PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 3)

Misha Koshelev misha680 at gmail.com
Fri Jul 23 18:53:15 CDT 2010

Per Henri's comments in:

> > +static DWORD compute_sphere_test_index_data(FLOAT radius, UINT slices, UINT stacks)
> I haven't really thought this through yet, but would it perhaps be
> simpler to calculate the faces a vertex is part of, instead of the
> other way around?

I am now calculating the indices a vertex is part of.

I am not sure it is _a lot_ simpler, but I believe it is geometrically clearer.

Unfortunately, the links I had looked at yesterday actually use a substantially different approach.

* Tessellate a tetrahedron, etc

* Create a mesh using rectangular patches

Anyway thank you all so much for your time and I appreciate all your feedback and Henri's help with pattern recognition :)

 dlls/d3dx9_36/tests/mesh.c |  368 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 364 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d3dx9-Complete-test-for-D3DXCreateSphere.txt
Type: text/x-patch
Size: 15259 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100723/1565ff65/attachment-0001.bin>

More information about the wine-patches mailing list