Skip to content

Commit 1d8d55c

Browse files
committed
Updated the class docstring to note the half-open interval policy and that the outer grid boundaries will be padded at the Grid level.
1 parent 4d6ac33 commit 1d8d55c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/graphomotor/core/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ class GridCell:
130130
"""Represents a single rectangular region in a grid layout.
131131
132132
Used to assign strokes to letter regions (Alphabet) or digit regions (DSYM).
133-
Boundary policy: a point on the exact boundary is considered inside the cell.
133+
Boundary policy: uses half-open intervals [min, max) to prevent
134+
double-assignment on shared grid edges. The outer grid boundaries should be
135+
padded (e.g., by 0.1) at the Grid level so that centroids on the outermost
136+
edge are not excluded.
134137
135138
Attributes:
136139
x_min: Left boundary of the cell.

0 commit comments

Comments
 (0)