I need to produce a 3-dimensional equispaced grid over a given function in a way, that I can calculate intersection points of the function with the grids edges.
So my first question is how to produce this grid in Mathematica. I don't really get if this is possible by modeling the grid by Polygons? For this I might need some help then, too. Or can it be done by using more simple graphics objects like done here?
|
|
|||||||
|
migrated from stackoverflow.com Jul 25 '12 at 12:19
|
Do I understand it correctly that you are looking for the intersection of an implicitly defined surface with planes (planes that could make up a grid)? Suppose we have this surface ...
... and we want to visualize the intersection with the plane $x + 2y - z$:
The simplest way is to use custom
Or take the intersections with planes parallel to $yz$: Update: You can extract the coordinates for the points making up the lines like this:
|
|||||
|
|
Here's an answer to my interpretation of the question: Start with a three dimensional grid of lines:
Turn each line into rule which gives a parameterisation of the line:
Now solve
And plot the results:
|
|||
|
|
|
From your description, it seems that you need to find the points of intersection between a set of lines and your function, the lines being part of your "grid." When you say intersection with the grid's edges, I am assuming that you mean points on the grid lines in the following sense: each grid unit makes cube of regular dimensions. You want to determine the intersection of the function with cube faces. If this is the case, all you need to do is solve for intersection with sets of plane equations. |
|||
|





