Re: Interpolating the Intersection of Surface & Plane



In article <ef37f7e.-1@xxxxxxxxxxxxxxxxxxxxxxx>, JP <philNOSPAMsonj@xxxxxxxxxxxxxxxxxxxxxx> wrote:

Suppose I have a surface (take peaks for example), and now I also
have a line segment in my space that defines a portion of a plane
that is parallel with the z-axis (the line segment above/below peaks
and a vector parellel to the z-axis are used to define the "plane
segment").

Now this "plane segment" can cut through my peaks surface at any
angle in the xy plane, and it defines a curve.

Question: What is the best way (or any way) to interpolate z-values
along this curve (either as a function of xy or as a parameter 't')?

I was looking into using griddata but it seemed like overkill and
looked like I would probably take a performance hit.

Use contour (or contourc.)

If your plane is not the traditional one that is
perpendicular to the z axis, then rotate the surface
so it is.

HTH,
John D'Errico


--
The best material model of a cat is another, or preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945

Those who can't laugh at themselves leave the job to others.
Anonymous
.



Relevant Pages

  • Re: Picking/object selection in directx
    ... One method I've used to trim down this task uses bounding spheres pre-calculated for each object, and tests them against the line segment under the cursor spanning the near clipping plane to the far clipping plane. ... At render time I've already done some coarse trimming to limit the rendering to likely visible objects, so already I've trimmed down the number of tests that may need performed. ... If it is less than or equal to the square of the bounding sphere radius, ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Interpolating the Intersection of Surface & Plane
    ... Suppose I have a surface (take peaks for example), ... have a line segment in my space that defines a portion of a plane ... that is parallel with the z-axis (the line segment above/below peaks ... and it defines a curve. ...
    (comp.soft-sys.matlab)
  • Re: Is one-to-one mapping valid for comparing infinite-sized sets?
    ... continuum is being cut into parts. ... properties would convert a line segment into a point just by cutting ... a plane instead of line? ... If points can have different arrangement, ...
    (sci.math)
  • Re: Projecting segment with normals
    ... > also a plane. ... > Now I do a linear interpolation of the vectors and project every point on ... "point along the segment offset by an interpolated vector" in 3D. ...
    (comp.graphics.algorithms)
  • Re: an inequality from geometry
    ... the components of which is zero, ... with the plane H. ...
    (sci.math.research)