Interface TextureAtlasPolygonPlanner
Plans a polygon packing for a set of outlined items.
Implementations must be deterministic: identical items and constraints must
produce an equal plan, including under parallel. Overflowing items are
reported through TextureAtlasPolygonPlan.overflowTextureIds() and are not
treated as failures. Items whose policy excludes them or fixes their position
keep their issued transform.
-
Method Summary
Modifier and TypeMethodDescriptionplan(List<TextureAtlasPolygonItem> items, TextureAtlasPolygonConstraints constraints) Computes one placement plan for the given items under the issued constraints.default TextureAtlasPolygonPlanplan(List<TextureAtlasPolygonItem> items, TextureAtlasPolygonConstraints constraints, boolean parallel) Plans with the option of internal parallelism.
-
Method Details
-
plan
TextureAtlasPolygonPlan plan(List<TextureAtlasPolygonItem> items, TextureAtlasPolygonConstraints constraints) Computes one placement plan for the given items under the issued constraints.- Parameters:
items- participating page items with outlines and per-item policiesconstraints- host-issued page constraints including the rotation mode- Returns:
- the plan to validate and apply through the host boundary
-
plan
default TextureAtlasPolygonPlan plan(List<TextureAtlasPolygonItem> items, TextureAtlasPolygonConstraints constraints, boolean parallel) Plans with the option of internal parallelism. The default delegates toplan(List, TextureAtlasPolygonConstraints); parallel implementations must preserve determinism.
-