Swept absorption
The equations of simgeometry.polygon_objects, declared on the code that implements them and checked by the tests.
absorb
functionsourceAbsorb the alive markers that end in, or step through, an object.
- sweep
- first object
- Assumes
- objects in slot order; an object with
boxed[k]is skipped when the axis-aligned box of the step misses its bounds (an inverted object is solid outside its box and never skipped) - from
object_hit_times: a crossing in , 0 for an end inside, 2 for no hit; strictly smaller wins, so the lower slot wins a tie, and an end inside beats every crossing - without a start, or for a step longer than
sweep_length(wrapped or reinjected), only the end counts - packed:
Polygonand the two plates ofAperture2D; other objects are left out - returns the object only, not the hit point, edge or normal (those come from
crossings); cost O(edges) per marker and unboxed object
- objects in slot order; an object with
- Built from