Questions tagged [intersection]

Intersection is a term that relates to descriptive geometry and functions. Intersections are points which are included in multiple objects. They are intersections of the object they belong to.

2483 questions
0
votes
1 answer

three js weird artifacts with objects intersection

Trying to get into three js and following some tutorials here and there but I'm stuck on some very basic stuff I feel, that I can't find the solution to. The problem I have is shown better on the gif below, it's those weird artifacts in the smaller…
Monochromatic
  • 172
  • 13
0
votes
0 answers

Problem with lengths(st_intersects(st_buffer(x, 500), y))

So I have two datasets. The first properati_santa_rita which is created in this way: barrios <- st_read('https://bitsandbricks.github.io/data/CABA_barrios.geojson') Properati =…
0
votes
0 answers

Ray tracing triangle intersection in cylindrical coordinates

I am using a finite difference Navier Stokes code that supports both cartesian and cylindrical coordinates. There is a task where we have a geometry given by a STL file (in cartesian coordinates) and we need to find intersections of rays that we…
0
votes
1 answer

How update intersection when an angle.Value() change

I have a construction that starts with a point and a segment. Later I have an intersection. The correct output of the intersection depend if the 3.rd parameter i is 0 or 1. The point and the line are not part of create('intersection'.... If 0 or 1…
basilius
  • 55
  • 1
  • 1
  • 6
0
votes
1 answer

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()- For finding intersection between two lists

I have a data which is : https://github.com/mayuripandey/Data-Analysis/blob/main/Topic.csv, For instance: Topic1_assignment | Topic2_assignment 0 Int64Index([ 0, 1, 3, 7, 8, 11], dtype='int64 | …
Noob Coder
  • 202
  • 3
  • 16
0
votes
1 answer

Find intersection between geometries in two different datasets using R's sf package

Using shapefiles downloaded from this website, I'm trying to obtain the (area of the) intersection of geometries, where each of these geometries is in a different file. However, the operation is throwing an error when I attempt it, and I have not…
DOS
  • 29
  • 7
0
votes
0 answers

How to define an intersection type in TypeScript (A ∩ B and not A ∪ B)

Consider 2 interfaces, interface Item { id: string name: string budget: number } interface Aggregate { budget: number estimation: number } How to define an interface which is an intersection of Item and Aggregate? By intersection I mean…
Kasheftin
  • 7,509
  • 11
  • 41
  • 68
0
votes
1 answer

How does the line-intersection routine in the Greiner-Hormann algorithm work?

As a part of the Greiner-Hormann algorithm for polygon-clipping (described here), there is this subroutine: In image form: And transcribed (attempted): intersect(P1,P2,Q1,Q2,alphaP,alphaQ) WEC_P1 = WEC_P2 =
NicknEma
  • 414
  • 3
  • 13
0
votes
1 answer

Nodejs: how to make intersection of two arrays of dates

How to do an intersection of matrices correctly. I'm working in nodejs and I'm trying to compare two arrays to get the same elements i.e. an "array intersection" This is a pretty common question, actually, and even though I've searched and applied…
Izlia
  • 235
  • 1
  • 2
  • 18
0
votes
1 answer

Key error in nested loop used for matching two pair of values

I am facing an error when I try to match every distinct pair of values in a dataframe column. every value was written in this…
0
votes
4 answers

How can I choose a specific intersection element in a list? TypeError: unhashed type: 'list'

I would like to intersect two lists and print what they have in common. However, I would like to choose the specific element to intersect (e.g. [0] or [hockeymatch], [1], etc). With x[0] or y[1], my intention is not to select the entire line of the…
user20812299
0
votes
1 answer

EF Core array intersection

I use PostgreSQL and have a column codes of type text[], and I have another column filterCodes of type string[]. When I query data from the table, I need to check that codes contains at least one element from filterCodes, I try use Intersection and…
Pedro
  • 63
  • 1
  • 7
0
votes
1 answer

Finding a point on a straight line with DbGeography.Intersect()

I am currently learning about DbGeography in C# and playing around with some functionality. I have been trying to ascertain whether the Intersects() method will return true for a point lying on a straight line (represented as a LineString…
0
votes
0 answers

How to find a complementary parallelogram

On https://stackoverflow.com/a/8862483/4918319, an algorithm is put forward with which to determine whether a ray in 3-space goes through a given rectangle, if we specify the ray by two vectors (one specifying the origin of the ray and the other its…
Post169
  • 668
  • 8
  • 26
0
votes
0 answers

How to get the intersection of two vectors when one is a polygon and one a multipolygon, without skipping features with invalid geometries?

In QGIS I am trying to get the intersection between the vector layer with black lines and another vector layer in gold. Whenever I do it I get the error that they are different geometries. When I opt to skip features with invalid geometries I get…
cdtmh
  • 23
  • 4