Below is one way to think about and “solve” the problem. Imagine you have your cookie (the black‐outlined square) and, inside it, you’ve made a cut along the red–outlined shape. (For instance, the red cut might be an arbitrary closed curve inside the cookie.) Now you want to “separate” the bit inside the red curve from the rest of the cookie by exactly 1 inch everywhere along the red boundary—and you’re not allowed to chop away any cookie material. In other words, you must reposition one part (or both parts, by moving one relative to the other) so that no point on the red–boundary of the “inner piece” comes closer than 1 inch to its adjacent “outer piece.”
A good strategy is to “offset” the red–curve exactly by 1 inch in the outward direction and then move the inner piece until that offset curve just barely touches the outer piece. (Or equivalently, you could slide the nut‐shell “frame” that is the remainder of the cookie 1 inch away from a fixed inner piece.) This is almost exactly what is done in computational geometry when one computes a “Minkowski sum” of a shape with a disk of radius 1.
Here’s a step–by–step outline:
-
Describe the Cut Boundary and Its Offset:
Let ( C ) be the red–cut curve outlining the inner cookie piece. At each point ( p ) on ( C ) there is an outward–pointing normal vector ( n(p) ) (pointing from the inner piece into the outer cookie). Now form the offset curve
[
C_{1} = {, p + 1\cdot n(p) \mid p\in C ,}.
]
In geometric terms, you “sweep” a circle (of radius 1 inch) along the red boundary. The set ( C_{1} ) is precisely where every point of the inner piece “would be” if you shifted it by 1 inch in the appropriate normal direction.
-
Repositioning Without Losing Cookie:
Since you can’t throw away cookie dough (or “add” any), you have to reposition one of the parts as a rigid body move. For example, suppose you decide to leave the inner piece in place and slide the outer cookie away. You choose a translation vector ( T ) so that when you translate the outer piece by ( T ) (or equivalently, the inner piece by (-T)) the exact distance between the red–cut edge and the nearby edge of the outer cookie becomes 1 inch at every point. In effect, you want the translated red–curve ( C ) (or its offset ( C_{1} )) to “kiss” the outer cookie’s edge.
In the language of configuration spaces, you are “growing” the inner piece by a 1″ thick layer (via the Minkowski sum) and then finding a translation that makes the contact between that grown piece and the outer piece as tight as possible (precisely 1″ away).
-
How to Determine the Translation:
In many practical situations (especially if the red–cut is a simple polygon like a square or a circle) the proper translation is obvious. For irregular shapes you can determine ( T ) in a more systematic way by:
- Computing the 1″ offset of ( C ) (which is the Minkowski sum of the inner shape and a 1″ disk).
- Finding the unique translation ( T ) such that the “moved” version of ( C ) (or its offset curve) touches the unchanged outer cookie piece at least at one point, and everywhere else the separation is at least 1″.
This guarantees that every point on the boundary of the inner piece is exactly 1 inch from the outer cookie.
-
Keep the Cookie on the Table:
Notice that you aren’t “removing” or “adding” any material. You are merely performing a rigid translation (or a pair of translations—one for each part, in opposite directions) on the table. That is, at all times the cookie (both pieces) remains in one piece on the table.
What to Google for Mathematical Details
If you’d like to understand exactly how to compute such an offset and find the appropriate translation mathematically, try searching for some of these topics:
-
"Minkowski Sum Offset Polygon"
(This explains how to “grow” a polygon by a fixed distance, which is exactly what you need for the 1″ offset.)
-
"Computing Offset Curves for Polygons"
(This gives practical methods for finding curves that run parallel to a given polygonal boundary at a fixed distance.)
-
"Configuration Space Obstacles"
(In robotics, the idea of “sweeping” one shape around another—ensuring a certain clearance—is studied using configuration spaces.)
-
"Hausdorff Distance and Set Offsets"
(For a theoretical treatment of ensuring that two sets are a fixed distance apart uniformly.)
In Summary
The best solution is to compute the 1″ offset (using the Minkowski sum with a 1″ disk) of the inner cookie’s cut, then slide (translate) one of the pieces relative to the other so that this entire offset boundary exactly touches the other piece—guaranteeing that the closest distance between any point on the inner piece and the outer cookie is exactly 1 inch.
This approach maintains the integrity of the cookie (no dough is added or removed) and ensures that every point along the red–cut edge is separated by precisely 1 inch from the remainder of the cookie on the table.