Skip to main content

Questions tagged [intersection]

Questions on finding intersections of geometric objects: lines, planes, regions etc. with possible aid of ContourPlot, Interval, InfinitePlane and others.

Filter by
Sorted by
Tagged with
4 votes
1 answer
106 views

Strategy to speed up two polygons (or region) intersection

Basically, I want to compare the overlap between two polygons (or regions). First, I have a reference particle ring that can form a simple polygon, but this type of ring is very thin and long, and its ...
J. W's user avatar
  • 71
2 votes
2 answers
131 views

Conic sections: intersection of a plane and a cone. How can I change the equation of the plane to get conic sections automatically?

I tried to draw intersection of a plane and a cone. Hyperbola ...
minhthien_2016's user avatar
0 votes
1 answer
82 views

Plot a surface between three intersecting curves using 3D data sets

I would like to plot a surface between the intersecting points of three 3-dimensional curves. The curves are created using ListLinePlot3D, from the following lists: List1: ...
Ryan Lobjoit's user avatar
2 votes
2 answers
150 views

How can I determine coordinates of vertex of parabola as intersection of a plane and a cone?

I want to determine the point I as vertex of the parabola that is the intersection of the plane plane = InfinitePlane[{{0, myy, 0}, {0, myy, -1}, {1, myy, -3}}]; ...
minhthien_2016's user avatar
0 votes
1 answer
92 views

How can I draw the intersection of a cone and a plane?

I have a cone and a plane myQ = x - 4 y + z + 4 == 0;. How can I draw the intersection of the cone and the plane myQ? ...
John Paul Peter's user avatar
3 votes
1 answer
80 views

Trying to surround the area produced by intersecting surfaces with a boundary line

With MMA 12, I have a cone & sphere in 3D, that intersect. The area where they intersect I've managed to color (yellow), but I would like to surround that area with a more prominent line of a ...
fiz's user avatar
  • 734
4 votes
3 answers
485 views

Efficiently fill an ellipse with a k-many random ellipses

So, I can create a circle filled with circles of the same radius that gives this example picture: with this code: ...
Teg Louis's user avatar
4 votes
1 answer
152 views

Finding intersection points graphically

"Code used in Mathematica version 13.3.1 on a Microsoft Windows (64-bit) (July 24, 2023) system" I used @cvgmt's code to find the intersection points from a parametric plot graphically: <...
codebpr's user avatar
  • 2,253
1 vote
1 answer
90 views

Finding intersection points from ParametricPlot

"Mathematica version 13.3.1 for Microsoft Windows (64-bit) (July 24, 2023)" I have the following Mathematica code: ...
codebpr's user avatar
  • 2,253
5 votes
1 answer
177 views

Finding intersection of two curves using mesh functions

I have the following code which finds intersection of two curves using mesh functions: ...
codebpr's user avatar
  • 2,253
0 votes
1 answer
101 views

Parametrization of intersections

How may we find (at least one real) intersection parametrizations $ x(t),y(t),z(t)$ between two implicit surfaces? p=9; ContourPlot3D[{x^2-y-(z-1)^2==1,(x+1)^2+2Sin[3y]-3z==4},{x,-p,p},{y,-p,p},{z,-p,...
Narasimham's user avatar
  • 3,170
0 votes
0 answers
84 views

Speeding up RegionIntersection of multiple sets of rectangles

There is a set of disjoint rectangles shadow that change position over time. I want to find their intersection with another set of small rectangles ...
wowo snail's user avatar
1 vote
0 answers
63 views

Weird slowdown on data returned by compiled function (bug?)

Mathematica 13.1 - I was cleaning up some computations and I got a x3 time increase when I reduced things to loop over. Full context is a bit convoluted, I stripped the most I could but the problem ...
Domenico Modica's user avatar
1 vote
1 answer
62 views

Intersection of region with triangular lattice in 2D

Is there a function that finds all points that lie in specified region and also are part of triangular lattice defined by {Sqrt[3] i, 3 (2 j + Mod[i, 2])} for ...
azerbajdzan's user avatar
  • 18.7k
6 votes
2 answers
224 views

Graphics`Mesh`FindIntersections not working in Mathematica 13.3

I just updated my Mathematica for Windows to 13.3 and when I tried to use the "Graphics MeshFindIntersections" command it doesn't seem to work. Have they replaced it with some other command ...
codebpr's user avatar
  • 2,253
4 votes
1 answer
102 views

Understanding the MeshShading options

The following code draws the intersection of a surface N: eqNcar=0 with three other surfaces defined by eq1=0, ...
Smilia's user avatar
  • 592
2 votes
1 answer
68 views

Crossing out region on surface

Consider the following Wolfram Mathematica code ...
Smilia's user avatar
  • 592
3 votes
2 answers
204 views

Representation of the intersection between a sphere and a plane

Consider the plane $N: x+y+z-3 q=0$ where $q$ is fixed and the sphere $S: (x-q)^2+(y-q)^2+(z-q)^2=r$ where $r$ is fixed. I would like to make a 3D plot of $N$ and of $S\cap N$. Here is my command ...
Smilia's user avatar
  • 592
1 vote
0 answers
75 views

faster way to find intersections?

I'm writing a g-code generator for a CNC hot wire foam cutter. I have a block of foam (blue cuboid), and two airfoils that define the root and tip of a wing (shown as black curves on the ends of the ...
rhomboidRhipper's user avatar
3 votes
2 answers
173 views

Intersection point of two lines given starting points and ending points of both lines

I'm creating a program which requires me to get intersection point of two lines. I have tried using different formulas but none of them works perfectly for me. Following is one example which I found ...
Ali Abdullah's user avatar
3 votes
3 answers
305 views

Intersection points of two-variable polynomials

Let $h$ and $g$ designate two multivariable polynomials: $$\!\!h(x,y)=-96\! \left(32 x^2\!+\!8 x (3\!-\!8 y)\!+\!40 y^2-28 y+5\right) \left(10 x^2+x (4 y-2)+\quad\quad\quad\\ \quad\quad+(1-2 y)^2\...
VH84's user avatar
  • 179
4 votes
2 answers
310 views

Identifying lattice squares that are intersected by a closed curve

Given a lattice of unit squares I would like to find the number of squares that a curve (in the example below the curve is a circle) passes through and the number of squares that totally reside inside ...
1729taxi's user avatar
  • 777
0 votes
1 answer
136 views

How to generate a random point inside this region/discretize it?

Consider the following region: ...
John Taylor's user avatar
  • 5,827
3 votes
1 answer
85 views

How to include sparse points in a ContourPlot if any?

I'm working with the following expressions: $$\left(\frac{1-\tanh (X)}{\tanh (X)+1}\right)^{-k}=\pm\frac{P_2^{(k,-k)}(\tanh (X))}{P_2^{(-k,k)}(\tanh (X))}$$ where $X\in[0,5]$ and $k\in\left[-\sqrt{\...
Patrick El Pollo's user avatar
2 votes
1 answer
87 views

How to evaluate open intervals in ContourPlot?

I want to ContourPlot an expression over an interval that excludes some points. Since i dont know how to do it I wrote ...
Patrick El Pollo's user avatar
1 vote
0 answers
56 views

Show only countourplot lines inside regionplots, without displaying the regionplots [solved]

I have a countorplot (Fun1) which important curves are those inside one of the two regionplots I'm working on (funA1 or funB2). The minimal example of what I want to do is the following: ...
Mitsumako's user avatar
2 votes
1 answer
115 views

RegionIntersection extremely slow before throwing error

I am dealing with polygons admitted by using other region functions (like RegionDifference), some of which have insidious problems. Consider those below; ...
Anti Earth's user avatar
  • 1,211
0 votes
0 answers
53 views

Crash when repeatedly calling RegionIntersection (and/or Mesh functions)

My kernel (v13.1.0 Windows 64-bit) crashes when repeatedly (~9 times) calling Region functions like RegionIntersection upon ...
Anti Earth's user avatar
  • 1,211
4 votes
2 answers
134 views

Kernel quits upon computing RegionIntersection

Using 12.1.1.0 on MacOS BigSur I observe quitting Mathematica kernels when evaluating RegionIntersections on two regions that apparently only touch. Example for Regions that cause the Kernel to quit ...
Christoph lerche's user avatar
2 votes
1 answer
105 views

not being able to find the a good picture of the intersection of two surfaces

I'm having trouble finding a good picture around the origin of the intersection curve of the following surfaces $z - \dfrac{x^2}{2} - \dfrac{x^3}{12 \sqrt3} + \dfrac{y^2}{2} + \dfrac{x y^2}{4 \sqrt 3}=...
User0212's user avatar
0 votes
1 answer
80 views

Identifying the intersection between a ConditionalExpression and a parametric curve

I'm trying to determine the intersection of lines over a surface (if they exist). My problem is that one of the lines is defined as a conditional expression and for the others I only have a parametric ...
Patricio's user avatar
  • 583
0 votes
0 answers
85 views

Calculate the "intersection" for the given case?

Consider the following task: There are two cross-sections: the first one is located in the $yz$ plane (the case 1), and the second one is in the $xy$ plane (the case 2). In the spherical coordinate ...
John Taylor's user avatar
  • 5,827
1 vote
2 answers
115 views

Intersection of a set of structurally homogeneous inequalities and extracting a combination of numbers to fully satisfy it

There are a number of structurally homogeneous inequalities: $\begin{array}{l} \left| s_1\right| \leq \sqrt{4 s_2} \\ \left| s_2\right| \leq \sqrt{4 s_4} \\ \left| s_3\right| \leq \sqrt{4 s_6} \\ \...
dtn's user avatar
  • 2,404
4 votes
2 answers
439 views

How to get a manipulated plot of the intersection points of two curves without finding them numerically?

I have four 2-variables functions for $0<x<3$ and $1<y<3$ ...
math2021's user avatar
  • 749
1 vote
3 answers
194 views

Plotting the solutions of the equation $e^{-z}=z$ in the complex plane

I would like to plot in the complex plane the solutions of the equation $$e^{-z}=z.$$ I tried this: I took $z=a+ib$ and took the real and imaginary part of the equation: ...
David Lingard's user avatar
1 vote
2 answers
170 views

Plot the intersection of a plane with the volume of a function

I have the following function: ...
Gouz's user avatar
  • 291
2 votes
2 answers
426 views

How to plot a point in the intersection of two functions?

I'm trying to plot the intersection of a Sum function with a horizontal line and automatically highlight the intersection points. The code below shows my knowledge of Mathematica and for different ...
ALEXANDRE ARARIPE's user avatar
3 votes
1 answer
90 views

intersection between box and convex set

I have a task to make an intersection between the convex set and the box , the equation describing the convex set is r1r2r3 - r1 -r2 - r3 + 2 cos(phi) > 0, phi = 45 ,and I plot it using p2 = ...
Ranim Ali's user avatar
1 vote
0 answers
69 views

Finding the shared edged between two polygons

Imagine I have two convex polygons pol1 and pol2 with a shared edge. Take, as an example, ...
sam wolfe's user avatar
  • 4,863
3 votes
2 answers
301 views

Find intersection points between ParametricRegion and other curves

How do you instruct Mathematica to return intersection points between curves as numerical values, when using ParametricRegion to represent at least one of the ...
FrankM's user avatar
  • 217
11 votes
1 answer
194 views

Mysterious Intersection on Association

This bug has been fixed in version 13.0 I have try to do an intersection on list of associations and the result is astonishing. Here an example: ...
Franck's user avatar
  • 391
5 votes
2 answers
740 views

Finding all intersection point between two time series

I've the following time series in smoothedData: ...
Jepessen's user avatar
  • 950
1 vote
0 answers
84 views

Determine if intersection of Polygon and HalfLine is non-empty

I have a concrete example: ...
Per Alexandersson's user avatar
0 votes
0 answers
100 views

Circular graph construction to minimize overlaps

I wish to create a set of circular graphs with 23 vertices. An example is shown below: This may be constructed by taking, for example, a random sample of the range: ...
Mark R's user avatar
  • 1,589
2 votes
0 answers
66 views

How to speedup RegionIntersection?

Consider a circle circle located at the origin of a coordinate frame and with a radius ROffAxisArb (it is parametrized by two ...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
240 views

How to Add Vertical Line and Intersection in Manipulate-Plot-Row Diagram

I would like to represent i) the K^s value as a vertical line in the right diagram and ii) identify the intersection of the vertical line with the downward-sloping curve with "E" (as well as ...
Tom's user avatar
  • 299
0 votes
1 answer
124 views

How to generate randomly points that belong to the given range?

Consider some rectangle called ExperimentLocation, and a circle ParticleAzimuthalCoverage: ...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
739 views

How to find the intersection points of two 3D surfaces in Mathematica?

I have two equations consisting of two variables and I'm plotting those two functions in 3D by defining the range of the two variables. I need to find the points of intersection of these two functions....
sunanda's user avatar
  • 13
3 votes
2 answers
102 views

A condition for one domain to be included in another domain?

Consider two domains: domain1 = Rectangle[{-2.5, -2.5}, {2.5, 2.5}]; domain2[R_] := Disk[{0, 0}, R] I would like to check whether the second domain is completely ...
John Taylor's user avatar
  • 5,827
2 votes
1 answer
216 views

How to find the area of circle inside the rectangle?

Consider a circle located at the origin circ[R_] := Circle[{0,0},R] and an arbitrary rectangle ...
John Taylor's user avatar
  • 5,827