🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #62

Re: 3d programming

#62
From: Tom Wheeley
Date: Fri, 16 Feb 1996 00:14
43 lines
2697 bytes
In article <3123178B.7CD8@lysator.liu.se>
           zap@lysator.liu.se "Mr 'Zap' Andersson" writes:

> >    I think everyone did not understand what the original poster
> > (Jonathan Cohn) was trying ti say. I Think he was asking what is the
> > minimal amount of information you need to define a plane in 3 space.
> > Everybody's knee jerk reaction to that is to say you need three points
> > or nine numbers (x1,y1,z1) - (x2,y2,z2 ) - (x3,y3,z3).
> >   He was pointing out that you can use less numbers to give the same
> > information. Thus stating you need two points or more to the point
> > just six numbers (x1,y1,z1) (vx1,vy1,vz1).  I am sure he knows the
> > difference between a point and vector.
> >   If this is what he was trying to say then I have to correct him and
> > say you only need four numbers to define a plane, the four
> > coefficients of the planer equation Ax + By + Cz + D = 0.
> > That is the minimal amount of info needed for a plane.
> 
> Not entirely true. Assume the length of the normal vector is 1, you can leave
>  one 
> component out. I.e. C can be calculated from A and B.
> 
> So the *storage* needed is really only three numbers!
> 

I don't *think* so.  Say you give A, B and D.

I presume you are using pythag, so you get

1=A2+B2+C2                (A2 = A * A)

ie C=+/-sqrt(1-A2-B2)

I believe you now describe two possible planes.

You require 3 numbers + a sign.  Actually you could store it as the sign
for D (Distances are always positive) and keep it within 3 numbers, but that
is computer science, not mathematics.

[Correct me if I made a fatal flaw, plz...]
--
* TQ 1.0 * The 'Just So Quotes'.
Arthur C. Clarke's Law :
It has yet to be proven that intelligence has any survival value.
Technical Details
Message-ID: <824429693snz@tsys.demon.co.uk>
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!tsys.demon.co.uk
References: <4f3od9$2jg@zeus.tcp.co.uk> <jderrick-0502961551360001@slip037.csc.cuhk.hk> <3118310E.52F@psu.edu> <4fiuh2$qrj@fulton.cs.unc.edu> <3120F507.31DFF4F5@gie.com> <4fs1n2$66@unix.midplains.net> <3123178B.7CD8@lysator.liu.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!tsys.demon.co.uk
From: Tom Wheeley <tomw@tsys.demon.co.uk>
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.mac,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc,comp.sys.amiga.programmer,comp.graphics.algorithms,comp.os.ms-windows.programmer.graphics,comp.sys.amiga.graphics
Subject: Re: 3d programming
Date: Fri, 16 Feb 96 00:14:53 GMT
Organization: City Zen FM
Message-ID: <824429693snz@tsys.demon.co.uk>
References: <4f3od9$2jg@zeus.tcp.co.uk> <jderrick-0502961551360001@slip037.csc.cuhk.hk> <3118310E.52F@psu.edu> <4fiuh2$qrj@fulton.cs.unc.edu> <3120F507.31DFF4F5@gie.com> <4fs1n2$66@unix.midplains.net> <3123178B.7CD8@lysator.liu.se>
Reply-To: tomw@tsys.demon.co.uk
X-NNTP-Posting-Host: tsys.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.30
X-Sig-By: Tomsystems Quote v1.2.  (c)1996 Tom Wheeley, tomw@tsys.demon.co.uk
X-Mail2News-Path: tsys.demon.co.uk