assert_profiles
Verify a sketch has the expected number of closed profiles. Returns ok=False when mismatched, catching self-intersecting polygons that silently create extra profiles.
Instructions
Check that the sketch has the expected number of closed profiles. Returns ok=False if not. Use after building a sketch to catch self-intersecting polygons (which return profiles=2 silently).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | ||
| expected | Yes |