Click here to Skip to main content
15,905,566 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncode for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
mrby12319-May-08 11:24
mrby12319-May-08 11:24 
AnswerRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459319-May-08 15:12
Member 419459319-May-08 15:12 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
mrby12319-May-08 19:44
mrby12319-May-08 19:44 
QuestionRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
CPallini19-May-08 22:14
mveCPallini19-May-08 22:14 
AnswerRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
mrby12320-May-08 5:44
mrby12320-May-08 5:44 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459320-May-08 3:56
Member 419459320-May-08 3:56 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
mrby12320-May-08 5:41
mrby12320-May-08 5:41 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459320-May-08 7:01
Member 419459320-May-08 7:01 
Ok. Your last statement brings up another question (since you can connect the points "in a way you like"). Does the solution need to determine the minimum distance to one of the discrete points, or to any point on the surface which these three points lie upon? A three dimensional convex hull could be constructed to enclose the points, but would not be correct if the surface were like a golf ball with dimples and one of the points was at the bottom of the dimple (a convex hull would skip over that point), some surface generating ordering of the points must be described, otherwise you do not have a "surface" but many intersecting "surfaces". Another view of the points could be that each two adjacent points are paired as an edge, and you have to scan the array looking for some point that matches either end to connect that edge with this edge to finally form a "surface".

Note further: If the discrete points are to be taken as a group of three to form a triangle, then if the line segment is parallel to that triangle and directly over it, then an infinite number of points on the surface would have the same distance to the line segment. If The line segment was not parallel to the surface, but to one of the edges, then the same condition exsists.

It all really all depend on the definition of the term "surface".
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
mrby12320-May-08 8:23
mrby12320-May-08 8:23 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459320-May-08 11:54
Member 419459320-May-08 11:54 
GeneralRe: code for calculating the point in a surface and minimum distance from the surface to a line segment, which is not in the surface. Pin
Member 419459326-May-08 5:15
Member 419459326-May-08 5:15 
QuestionMemory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 11:10
Samjiman19-May-08 11:10 
QuestionRe: Memory address differences with MSVC and g++/MinGW Pin
Maximilien19-May-08 16:13
Maximilien19-May-08 16:13 
GeneralRe: Memory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 23:52
Samjiman19-May-08 23:52 
QuestionRe: Memory address differences with MSVC and g++/MinGW Pin
CPallini19-May-08 22:18
mveCPallini19-May-08 22:18 
GeneralRe: Memory address differences with MSVC and g++/MinGW Pin
Samjiman19-May-08 23:54
Samjiman19-May-08 23:54 
QuestionHow to find out Frame Rate and Video Length [modified] Pin
80Eddy19-May-08 10:46
80Eddy19-May-08 10:46 
QuestionSetScrollSizes is cauing pinch. Pin
adityarao3119-May-08 6:16
adityarao3119-May-08 6:16 
AnswerRe: SetScrollSizes is cauing pinch. [modified] Pin
Nelek19-May-08 7:51
protectorNelek19-May-08 7:51 
GeneralRe: SetScrollSizes is cauing pinch. Pin
adityarao3119-May-08 8:15
adityarao3119-May-08 8:15 
QuestionAbout the path Pin
capint19-May-08 5:08
capint19-May-08 5:08 
AnswerRe: About the path Pin
toxcct19-May-08 5:12
toxcct19-May-08 5:12 
GeneralRe: About the path Pin
capint19-May-08 5:30
capint19-May-08 5:30 
GeneralRe: About the path [modified] Pin
toxcct19-May-08 5:34
toxcct19-May-08 5:34 
QuestionHaven't ever heard about escape sequences? Pin
CPallini19-May-08 5:46
mveCPallini19-May-08 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.