GeometryCollection caching
Attempt to cache discretization-related quantities in the GeometryCollection, so that they don't get recomputed.
This turned out to do a couple of more or less related changes around GeometryCollection:
-
Pass the GeometryCollectionwhen refining. Currently this doesn't change the logic, but it should pave the way for taking into count multiple geometries when refining. -
Split refine_for_global_qbxto be able to dostage1andstage2separately. The idea is to be able to refine on demand inGeometryCollection. -
Check and update tests and examples to properly use GeometryCollections. -
Clean up how the target density_discris handled. This should be thestage1_density_discr. -
Potentially: make it clear that stage1/stage2is a per-GeometryCollectionproperty (since it could potentially need to consider nearby geometries when refining)
Edited by Alexandru Fikl