Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Contour mapping? (Thank Dog for anonymonk.)

by BrowserUk (Patriarch)
on Apr 28, 2016 at 16:52 UTC ( [id://1161794]=note: print w/replies, xml ) Need Help??


in reply to Re: Contour mapping?
in thread Contour mapping?

You have triangles. Each triangle determines a plane in three space. Find the intersection of that plane with a horizontal (constant height) plane, this will be a line. The direction of that line is the angle you seek.

Hm. If that is true; and I can't honestly dismiss it on first (nor second) reading, it is a brilliant observation and would save huge amounts of work. I would only need to consider those triangle that border the boundaries I'm interested in.

What's puzzling me is that I wasn't aware that I had described the angles I'm seeking in sufficient detail for anyone else to understand; but despite that, you've hit the nail on the head and saved me a huge amount of processing in the bargain.

Any pair of points of equal height, on any two of the three sides will define the angle of all pairs of equal height points across the triangle. so if I follow my boundary polylines, I only need consider those triangles on either side of them, and finding the angles is simple geometry.

I simply do not know how to thank you enough.

(And there are people who want to ban Anonymonk....)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^2: Contour mapping? (Thank Dog for anonymonk.)

Replies are listed 'Best First'.
Re^3: Contour mapping? (Thank Dog for anonymonk.)
by Anonymous Monk on Apr 28, 2016 at 22:00 UTC

      Another BTW. Take that first crossproduct. It gives you a vector normal to the plane of the triangle. Cross it with a northern (y axis) vector and normalize the result. Then draw that triangle using a color proportional to the x component. Do for all triangles and you should get a pretty sun shaded picture of your data.

        One interesting, but awkward possibility -- that may never occur, but has to be dealt with in case it does -- is if all three points of a triangle are equal.

        Then the plane is flat and 'my angle' could cross it with any orientation. I'd have to look to the triangles adjoining the other two sides of the triangles that adjoin at my boundary to see how the potential flows through this boundary segment. Does your vector math cater to that?

        Thinking about it more, if a triangle is flat, then it is either a local peak or trough and the potential will flow around, but not through it.

        And that leads to the fact that if any segment on my boundary is formed by a pairs of points with equal height, then the potential will not cross the boundary through that segment at all, but rather will flow through the adjoining triangles, parallel to it; or not at all in the flat triangle case.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
        In the absence of evidence, opinion is indistinguishable from prejudice.
        all these short clear solutions... and nobody says a peep

      #JeSuisAnonymousMonk

Re^3: Contour mapping? (Thank Dog for anonymonk.)
by Anonymous Monk on Apr 29, 2016 at 00:54 UTC

    What's puzzling me is that I wasn't aware that I had described the angles I'm seeking in sufficient detail for anyone else to understand

    You wanted angles, I gave you angles :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found