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


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: Projecting a 3d point onto a plane

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.


    can anyone please help? i really don't know how to start it.
    Thank you


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Java Programming

    It looks like you are looking for help with some math concepts and design vs for java programming help.
    If you are having problems coding your application in java, please ask your questions here.

  3. #3
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java Programming

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

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default 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.

  5. #5
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default 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.

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java Programming

    Quote Originally Posted by mingming8888 View Post
    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.

  8. #8
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java Programming

    Quote Originally Posted by copeg View Post
    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?

  9. #9
    Junior Member
    Join Date
    Aug 2010
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java Programming

    Quote Originally Posted by Norm View Post
    How is a point defined? x,y or ???
    yes, x and y

    Quote Originally Posted by Norm View Post
    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.

    Quote Originally Posted by Norm View Post
    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)

Similar Threads

  1. how do i use point 3d?
    By antrax in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 6th, 2010, 05:13 PM
  2. How can i point the mouse over a html element within the web browser?
    By bobomonkey in forum Java Theory & Questions
    Replies: 2
    Last Post: October 18th, 2009, 12:37 PM