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
0 votes
6 answers
129 views

How to find the intersection of sets A and B?

Given the set A={x|-5<x^3<5} and the set B={-3,-1,0,2,3}, how to find the intersection of sets A and B? I tried the ...
csn899's user avatar
  • 4,852
3 votes
1 answer
144 views

Get the intersection points of the boundary of the region along with an oriented curve in order

...
herbertfederer's user avatar
5 votes
2 answers
145 views

How to draw the boundary line of intersecting region of a ContourPlot3D and a Graphics3D?

I have mathematical expressions of a cylinder (oriented along the x-axis) and a parabola. And I can easily plot both the surfaces using ContourPlot3D as shown below. ...
Arssat's user avatar
  • 187
4 votes
1 answer
125 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
3 votes
2 answers
158 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
90 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
162 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
1 vote
1 answer
106 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
88 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
504 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
  • 114
4 votes
1 answer
162 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,553
1 vote
1 answer
95 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,553
6 votes
1 answer
190 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,553
0 votes
1 answer
102 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,224
0 votes
0 answers
86 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
  • 21.3k
6 votes
2 answers
240 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,553
4 votes
1 answer
113 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
75 views

Crossing out region on surface

Consider the following Wolfram Mathematica code ...
Smilia's user avatar
  • 592
3 votes
2 answers
208 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
77 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
178 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
310 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
314 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
145 views

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

Consider the following region: ...
John Taylor's user avatar
  • 5,919
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
92 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
57 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
118 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,261
0 votes
0 answers
56 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,261
4 votes
2 answers
136 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
109 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
84 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
  • 593
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,919
1 vote
2 answers
116 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} \\ \...
ayr's user avatar
  • 2,464
4 votes
2 answers
443 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
202 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
191 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
439 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
91 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
78 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,933
3 votes
2 answers
318 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
196 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
  • 421
5 votes
2 answers
793 views

Finding all intersection point between two time series

I've the following time series in smoothedData: ...
Jepessen's user avatar
  • 960
1 vote
0 answers
88 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
101 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
67 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,919
1 vote
1 answer
253 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
  • 383
0 votes
1 answer
131 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,919