Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

# Thread: Projecting a 3d point onto a plane

1. ## Projecting a 3d point onto a plane

Hi
i am working on information visualization, which use triangle projection to do it, that get n points from a higher dimensional space to a 2 dimensional space. i need to project points from an object and plot the n points in 2D. and i am going to use JAVA to write it.
First, need to select a point to project and put it on the origin, and then put the 2nd point the right distance away from the 1st point.

Second, calculate the 3rd point using the 1st and 2nd points, which form a triangle. For the remaining points, i need to pick 2 projected points and form a triangle with the remaining points.

Thank you  Reply With Quote

3. ## Re: Java Programming

It looks like you are looking for help with some math concepts and design vs for java programming help.  Reply With Quote

4. ## Re: Java Programming

yea, i dont know how to start doing this program....  Reply With Quote

5. ## Re: Java Programming

Do you have the algorithm for the program?
Given that, we can help you write the java program to implement that algorithm.  Reply With Quote

6. ## Re: Java Programming

The algorithm is
Pick a point and put it at the origin (0,0)
Put the second point to the right distance away from the 1st point (0, distance(Point 1, Point 2))
The 3rd point is the intersect of Point 1 and Point 2's circle which form a triangle with point 1 and point 2
After projected 3 points
For each remaining points
we pick 2 projected points and form a triangle with remaining point

i need a module that project 2 points and work out where is the 3rd point will go.  Reply With Quote

7. ## Re: Java Programming

Put the second point to the right distance away from the 1st point (0, distance(Point 1, Point 2))
How is a point defined? x,y or ???
How do you compute the "right distance"? How is this point defined?

The 3rd point is the intersect of Point 1 and Point 2's circle which form a triangle with point 1 and point 2
How do the circles (that implies 2 dimensions) intersect? Wouldn't there be two points where the circles intersect? What is the diameter of the circles?

Where does the java programming come in for writing this program?

Can you give an example: Two points and the third point.  Reply With Quote

8. ## Re: Java Programming Originally Posted by mingming8888 The 3rd point is the intersect of Point 1 and Point 2's circle which form a triangle with point 1 and point 2
Unless you force some constraint on the triangle/Point3, in floating point space there are an infinite number of points which satisfy this criteria. If however point 3 is equidistant from 1 and 2, you are still left with 2 solutions.  Reply With Quote

9. ## Re: Java Programming Originally Posted by copeg Unless you force some constraint on the triangle/Point3, in floating point space there are an infinite number of points which satisfy this criteria. If however point 3 is equidistant from 1 and 2, you are still left with 2 solutions.
Yea, the 3rd point is equidistant from 1 and 2, so the 2 solutions are a positive and negative y, is it? then i will take the positive one. But how can i do this?  Reply With Quote

10. ## Re: Java Programming Originally Posted by Norm How is a point defined? x,y or ???
yes, x and y Originally Posted by Norm How do you compute the "right distance"? How is this point defined?
after point 1 is projected, the right distance is the distance between point 1 and point 2 is the distance in the original space. Originally Posted by Norm Can you give an example: Two points and the third point.
For example
Point 1 is (0,0)
Point 2 is (6,0)
Point 3 is (3, 6)  Reply With Quote