This may be a Pooh trap!

If you are trying to add to Point3d's then you may have failed to spot the
difference between a Point3d and a Vector3d and this can cause problems
later when you come to apply transformations.  Java3D provides (sensibly
named methods for) adding a Vector3D to a Point3D and a Vector3D to a
Vector3D because these are meaningful things to do.  Likewise the difference
between to Point3D's is a Vector3D.  But what does adding two Point3D's
together mean.  That type would the result be?

If you get into the habit of getting this wrong and end up carrying vectors
round in a Point3Ds or points in a Vector3Ds then when you come to apply a
transformation, the result will be out by a distance equivalent to the
transformation applied to (0,0,0).

Have fun

        Alex

-----Original Message-----
From:   Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]
On Behalf Of Thomas Gilbert Giusepe
Sent:   20 November 2001 10:59
To:     [EMAIL PROTECTED]
Subject:        [JAVA3D] how to sum Point3d

Hi there,

I need to get the sum of coordinates from two vertex at the same point3d.
Something like that:

Point3d sumP3D1=new Point3d(0.0,0.0,15.0);
Point3d valueP3D2=new Point3d(0.0,0.0,20.0);
// Sum two point3d:
sumP3D1=sumP3D1+valueP3D2;

So in order to have at the end the values (0.0,0.0,35.0) in my sumP3D1 ?
Some clue on how to perform it !? Thnx in advance!
Best wishes. Thomas  ...�:0).

_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to