Dirk,

            Yes you are right that the triangles are rotated in the same plane and not in space. However I am using this algorithm not with Java 3d but another 3d rendering library(VTK). So I am not sure if my code sample will really help you understand the problem.

            I think it will not help if I just check for the Z-depth(This will hold good only if the triangles are lying on XY plane). But in my case triangles can be on any plane.

 

Thanks

Shyam

 

-----Original Message-----
From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of Dirk L. van Krimpen
Sent:
Thursday, September 11, 2003 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Determining the triangles lying on a plane

 

 

Hi Shyam,

 

I suppose the triangles you want are only rotated in the same plane. So,

not rotated in space (otherwise, they would not longer lie in that plane).

If that's true you have to build in an extra check to determine which plane

it is. For example, if the other plane has a different z-depth, you could

check for the z-values of the triangles.

 

If the above is not the case, please, provide us with some more details.

Some code may help.

 

Dirk

 

----- Original Message -----

Sent: Wednesday, September 10, 2003 6:04 PM

Subject: [JAVA3D] Determining the triangles lying on a plane

 

Hello All,

                   My problem is some thing as follows. I pick one of the  triangles from the 3d object(say tri1). Now I want to determine all the triangles which make certain angle with tri1(say 10 degrees) and lie on the same plane as tri1. I can calculate the angle using the normal of the triangles(no problem here). But my algorithm returns me the triangles which make the angle within acceptatble limits but which fall on a different plane (Imagine two plane overlapping). Can somebody help?

 

Thanks

Shyam

=========================================================================== 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".

=========================================================================== 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