ComputeSphereVisibility: a patch

Frank Richter frank.richter at gmail.com
Sat Nov 15 12:14:39 CST 2008


On 14.11.2008 20:27, paulo lesgaz wrote:
> Hi,
> 
> here is a patch for a first try to implement ComputeSphereVisibility.
> Any feedback is welcome.

I think you can simplify the sphere-plane intersection. Just compute the
signed distance D of the sphere center from the plane. If D > r, the
sphere is visible. If -r <= D <= r, the sphere is partially visible. if
D < -r, it's invisible.

Also, wine people like tests. You should probably add some.

-f.r.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20081115/0abf9865/attachment.pgp 


More information about the wine-devel mailing list