JuliaGeometry/Meshes.jl

`Box` - `Ball` intersection in 2D

Open

#1165 aperta il 22 gen 2025

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Julia (98 fork)auto 404
featurehelp wanted

Metriche repository

Star
 (460 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The documentation for intersection reads

Compute the intersection of two geometries or domains g₁ and g₂ and apply function f to it. Default function is identity.

One might then expect to be able to run

orb = Meshes.Ball((0., 0.), 1.0)
square = Meshes.box((0.0, 0.0), (1.0, 1.0))
intersection(measure, orb, square)

which results in a StackOverflowError.

Perhaps "intersection" is not intended for this purpose?

Guida contributor