Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7075193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:08:53+00:00 2026-05-28T06:08:53+00:00

I’m having trouble grasping how to do this. I have a polygon defined by

  • 0

I’m having trouble grasping how to do this. I have a polygon defined by three points. I also have a point somewhere in space. I want to move the point somewhere in space to be on the same plane as the polygon. From what I understand, it is well-known how to do this. However, it is not well-known by me.

I can’t find any straight forward algorithms or solid explanations of how this is done.

I’ve been looking at this: http://www.odeion.org/pythagoras/pythag3d.html

But that will give me distances to rather than points of the vertices. I can see how that would be useful if the polygon was limited to 2d, but in my case, it may have any orientation.

Unfortunately my math is fairly weak, but I’m more than willing to learn.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:08:54+00:00Added an answer on May 28, 2026 at 6:08 am

    The first conceptual step that will be helpful is to have a way to determine if a point lies on the same plane as the three points from your polygon that describe the plane. One approach to doing this is to compute a normal vector for the plane — call it n — and define the plane using n and one of the three points (call that point r0).

    Computing a normal vector for the plane can be done in several ways (see here). For this situation, the most convenient approach is taking the cross product between two vectors that are in the plane (find two vectors using the points from the defining polygon).

    Once you know n, you can then test if a point r lies in the plane with the dot product between n and the vector (r0 – r). See here for more explanation.

    You can then use orthogonal projection on any point to get a new point that is on the plane.

    Example

    Let’s say I have three points:

    • p1: [1, 1, 1]
    • p2: [1.5, 6, 3]
    • p3: [2, -1, 5].

    Let’s first create a vector that is normal to the plane created by these points. Let

    • v1 = p1 – p2 = [-0.5, -5, -2]
    • v2 = p1 – p3 = [-1, 2, -4].

    The normal vector of these two is then

    • n = v1 x v2 = [24, 0, -6].

    For the sake of convenience, let’s normalize n, so now n = [0.9701425, 0, -0.24253563].

    Now we define the plane by n and let r0 = p1.

    Lets introduce a new point, r, that is not in the plane (you can verify by taking the dot product of n and (r0 – r):

    • r = [4, 4, 4]

    One way to “move” r to be on the plane is to “slide” it down the normal vector until it is on the plane (this is orthogonal projection). This is done by determining how much of n is in vector v3 = (r0 – r) (called scalar projection). Scalar projection in this case yields the new vector v3m = [-0.88235294, -3, -3.52941176]. This is computed by v3 – n*dot(n, v3). You can verify this is in the plane because it is orthogonal to n.

    We can now recover the point:

    • rm = r0 – v3m = [1.88235294, 4, 4.52941176].

    You can verify this point is indeed in the plane:

    • dot(r0 – rm, n) = 0.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.