Bowl body from the user's depth profile
Browse files- hotec_wheatstraw/README.md +7 -5
- hotec_wheatstraw/catalog.json +34 -34
- hotec_wheatstraw/parameters.json +97 -79
- hotec_wheatstraw/source/README.md +21 -17
- hotec_wheatstraw/source/hotec_gen.py +180 -42
- hotec_wheatstraw/source/test_hotec_gen.py +4 -3
- hotec_wheatstraw/usd/README.md +2 -2
- hotec_wheatstraw/usd/bowl.usda +0 -0
- hotec_wheatstraw/usd/cup.usda +3 -3
- hotec_wheatstraw/usd/plate.usda +3 -3
hotec_wheatstraw/README.md
CHANGED
|
@@ -1,15 +1,17 @@
|
|
| 1 |
# hotec_wheatstraw
|
| 2 |
|
| 3 |
Parametric plate, bowl and cup of the user's HOTEC wheat-straw dinnerware set (8 of each, four colours),
|
| 4 |
-
version
|
| 5 |
-
cup 0.0595 kg, 8-piece averages on a kitchen scale, 2026-09-22)
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
| Path | What |
|
| 9 |
|---|---|
|
| 10 |
-
| `usd/plate.usda`, `usd/bowl.usda`, `usd/cup.usda` | the assets: metres, Z up, origin at the base centre (foot plane z = 0), default prims `/HotecPlate`, `/HotecBowl`, `/HotecCup`, colour variant set `color`, 192/
|
| 11 |
| `usd/README.md` | the generator's own note for the three USDs |
|
| 12 |
-
| `parameters.json` | every dimension with its status (nominal, estimated, measured) and note, capacities, checks |
|
| 13 |
| `catalog.json` | per kind: USD name (relative to `usd/`), size, piece counts, mass, sha256 of every file |
|
| 14 |
| `source/` | the generator (`hotec_gen.py`, byte-identical to the one stamped in every USD) and its tests |
|
| 15 |
|
|
|
|
| 1 |
# hotec_wheatstraw
|
| 2 |
|
| 3 |
Parametric plate, bowl and cup of the user's HOTEC wheat-straw dinnerware set (8 of each, four colours),
|
| 4 |
+
version v4 (2026-10-29). It is v2 (the v1 geometry with the measured masses authored: plate 0.094625, bowl 0.067375,
|
| 5 |
+
cup 0.0595 kg, 8-piece averages on a kitchen scale, 2026-09-22) with the bowl rebuilt from the user's callipers and
|
| 6 |
+
depth readings: rim 144.53 mm outer diameter, 73.12 mm tall, a uniform 2.8 mm shell on the measured inner profile
|
| 7 |
+
(domed underside, flat 2.8 mm rim top), and the foot ring a plain rib 65.72 mm outer diameter and 3.16 mm wide from
|
| 8 |
+
the foot plane up into the shell. v3, earlier the same day, had the measured ring on the estimated body.
|
| 9 |
|
| 10 |
| Path | What |
|
| 11 |
|---|---|
|
| 12 |
+
| `usd/plate.usda`, `usd/bowl.usda`, `usd/cup.usda` | the assets: metres, Z up, origin at the base centre (foot plane z = 0), default prims `/HotecPlate`, `/HotecBowl`, `/HotecCup`, colour variant set `color`, 192/192/168 convex collision pieces, `physics:mass` on the default prim |
|
| 13 |
| `usd/README.md` | the generator's own note for the three USDs |
|
| 14 |
+
| `parameters.json` | every dimension with its status (nominal, estimated, measured, derived) and note, capacities, checks |
|
| 15 |
| `catalog.json` | per kind: USD name (relative to `usd/`), size, piece counts, mass, sha256 of every file |
|
| 16 |
| `source/` | the generator (`hotec_gen.py`, byte-identical to the one stamped in every USD) and its tests |
|
| 17 |
|
hotec_wheatstraw/catalog.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
| 6 |
"origin": "base centre: z = 0 at the foot plane, +Z up, opening toward +Z",
|
| 7 |
"quaternion_order": "XYZW in project records; WXYZ at the USD/Isaac boundary (no poses are authored here)",
|
| 8 |
"generator": "dishsim.hotec_gen",
|
| 9 |
-
"generator_sha256": "
|
| 10 |
-
"parameters_sha256": "
|
| 11 |
"mass_status": {
|
| 12 |
"plate": "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)",
|
| 13 |
"bowl": "measured: physics:mass = 0.067375 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)",
|
| 14 |
"cup": "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 15 |
},
|
| 16 |
"dimension_status": "nominal listing targets plus documented estimates; not measured",
|
| 17 |
-
"collision_method": "one convex hull per control-row band per 15-degree sector (mid-angle vertices); the control rows are a subset of the dense visual rows; cavities and foot recess open; decorative grooves/flutes are visual only",
|
| 18 |
"variant_set": {
|
| 19 |
"name": "color",
|
| 20 |
"variants": [
|
|
@@ -51,7 +51,7 @@
|
|
| 51 |
"plate": {
|
| 52 |
"usd": "plate.usda",
|
| 53 |
"default_prim": "/HotecPlate",
|
| 54 |
-
"sha256": "
|
| 55 |
"target_size_m": [
|
| 56 |
0.2286,
|
| 57 |
0.2286,
|
|
@@ -98,59 +98,59 @@
|
|
| 98 |
"bowl": {
|
| 99 |
"usd": "bowl.usda",
|
| 100 |
"default_prim": "/HotecBowl",
|
| 101 |
-
"sha256": "
|
| 102 |
"target_size_m": [
|
| 103 |
-
0.
|
| 104 |
-
0.
|
| 105 |
0.07312
|
| 106 |
],
|
| 107 |
"actual_size_m": [
|
| 108 |
-
0.
|
| 109 |
-
0.
|
| 110 |
0.07312
|
| 111 |
],
|
| 112 |
"usd_size_m": [
|
| 113 |
-
0.
|
| 114 |
-
0.
|
| 115 |
0.07311999797821045
|
| 116 |
],
|
| 117 |
"usd_bounds_m": [
|
| 118 |
[
|
| 119 |
-
-0.
|
| 120 |
-
-0.
|
| 121 |
0.0
|
| 122 |
],
|
| 123 |
[
|
| 124 |
-
0.
|
| 125 |
-
0.
|
| 126 |
0.07311999797821045
|
| 127 |
]
|
| 128 |
],
|
| 129 |
"size_error_m": [
|
| 130 |
-
|
| 131 |
-
|
| 132 |
0.0
|
| 133 |
],
|
| 134 |
-
"convex_colliders":
|
| 135 |
-
"collision_bands":
|
| 136 |
"collision_sectors": 24,
|
| 137 |
-
"visual_points":
|
| 138 |
-
"visual_triangles":
|
| 139 |
"fluted": false,
|
| 140 |
"capacity": {
|
| 141 |
"rim_z_m": 0.07312,
|
| 142 |
"headspace_z_m": 0.06812,
|
| 143 |
-
"brimful_ml":
|
| 144 |
-
"brimful_us_floz":
|
| 145 |
-
"headspace_ml":
|
| 146 |
-
"mesh_brimful_ml":
|
| 147 |
-
"mesh_over_polyline": 0.
|
| 148 |
"polygon_area_factor": 0.9992862058229084,
|
| 149 |
"method": "pi * integral r_in(z)^2 dz of the delivered inner polyline from the cavity floor to the lowest rim point (temporary horizontal closure; asset not capped); mesh cross-check = signed volume of the inner surface closed by a fan at the rim",
|
| 150 |
"advertised_ml": 768.9117686249999,
|
| 151 |
"advertised_us_floz": 25.999999999999996,
|
| 152 |
-
"difference_ml": -
|
| 153 |
-
"difference_pct": -
|
| 154 |
},
|
| 155 |
"checks_all_ok": true,
|
| 156 |
"mass_kg": 0.067375,
|
|
@@ -159,7 +159,7 @@
|
|
| 159 |
"cup": {
|
| 160 |
"usd": "cup.usda",
|
| 161 |
"default_prim": "/HotecCup",
|
| 162 |
-
"sha256": "
|
| 163 |
"target_size_m": [
|
| 164 |
0.0711,
|
| 165 |
0.0711,
|
|
@@ -219,10 +219,10 @@
|
|
| 219 |
}
|
| 220 |
},
|
| 221 |
"sha256": {
|
| 222 |
-
"README.md": "
|
| 223 |
-
"bowl.usda": "
|
| 224 |
-
"cup.usda": "
|
| 225 |
-
"parameters.json": "
|
| 226 |
-
"plate.usda": "
|
| 227 |
}
|
| 228 |
}
|
|
|
|
| 6 |
"origin": "base centre: z = 0 at the foot plane, +Z up, opening toward +Z",
|
| 7 |
"quaternion_order": "XYZW in project records; WXYZ at the USD/Isaac boundary (no poses are authored here)",
|
| 8 |
"generator": "dishsim.hotec_gen",
|
| 9 |
+
"generator_sha256": "260b3aa0bed8b13f4c98f9d2da3f2e78ab5f5174cac2eb15123ecf8451957ed0",
|
| 10 |
+
"parameters_sha256": "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc",
|
| 11 |
"mass_status": {
|
| 12 |
"plate": "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)",
|
| 13 |
"bowl": "measured: physics:mass = 0.067375 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)",
|
| 14 |
"cup": "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 15 |
},
|
| 16 |
"dimension_status": "nominal listing targets plus documented estimates; not measured",
|
| 17 |
+
"collision_method": "one convex hull per control-row band per 15-degree sector (mid-angle vertices); the control rows are a subset of the dense visual rows; cavities and foot recess open; decorative grooves/flutes are visual only; the bowl's foot rib is its own band, its top buried 1 mm in the shell",
|
| 18 |
"variant_set": {
|
| 19 |
"name": "color",
|
| 20 |
"variants": [
|
|
|
|
| 51 |
"plate": {
|
| 52 |
"usd": "plate.usda",
|
| 53 |
"default_prim": "/HotecPlate",
|
| 54 |
+
"sha256": "2adce4fe8a0778d5e50f331a21fe905aa8521b51490592dd50f3bc3cf816eab2",
|
| 55 |
"target_size_m": [
|
| 56 |
0.2286,
|
| 57 |
0.2286,
|
|
|
|
| 98 |
"bowl": {
|
| 99 |
"usd": "bowl.usda",
|
| 100 |
"default_prim": "/HotecBowl",
|
| 101 |
+
"sha256": "e1f14ec087b32e7f5ff1bf9bb4422e4314e2b32698436bc8b5c47313bcc53f40",
|
| 102 |
"target_size_m": [
|
| 103 |
+
0.14453,
|
| 104 |
+
0.14453,
|
| 105 |
0.07312
|
| 106 |
],
|
| 107 |
"actual_size_m": [
|
| 108 |
+
0.14453,
|
| 109 |
+
0.14453,
|
| 110 |
0.07312
|
| 111 |
],
|
| 112 |
"usd_size_m": [
|
| 113 |
+
0.14452999830245972,
|
| 114 |
+
0.14452999830245972,
|
| 115 |
0.07311999797821045
|
| 116 |
],
|
| 117 |
"usd_bounds_m": [
|
| 118 |
[
|
| 119 |
+
-0.07226499915122986,
|
| 120 |
+
-0.07226499915122986,
|
| 121 |
0.0
|
| 122 |
],
|
| 123 |
[
|
| 124 |
+
0.07226499915122986,
|
| 125 |
+
0.07226499915122986,
|
| 126 |
0.07311999797821045
|
| 127 |
]
|
| 128 |
],
|
| 129 |
"size_error_m": [
|
| 130 |
+
0.0,
|
| 131 |
+
0.0,
|
| 132 |
0.0
|
| 133 |
],
|
| 134 |
+
"convex_colliders": 192,
|
| 135 |
+
"collision_bands": 8,
|
| 136 |
"collision_sectors": 24,
|
| 137 |
+
"visual_points": 11330,
|
| 138 |
+
"visual_triangles": 22656,
|
| 139 |
"fluted": false,
|
| 140 |
"capacity": {
|
| 141 |
"rim_z_m": 0.07312,
|
| 142 |
"headspace_z_m": 0.06812,
|
| 143 |
+
"brimful_ml": 649.0372621268237,
|
| 144 |
+
"brimful_us_floz": 21.946560715898443,
|
| 145 |
+
"headspace_ml": 574.5386281412352,
|
| 146 |
+
"mesh_brimful_ml": 648.5739831084022,
|
| 147 |
+
"mesh_over_polyline": 0.9992862058229086,
|
| 148 |
"polygon_area_factor": 0.9992862058229084,
|
| 149 |
"method": "pi * integral r_in(z)^2 dz of the delivered inner polyline from the cavity floor to the lowest rim point (temporary horizontal closure; asset not capped); mesh cross-check = signed volume of the inner surface closed by a fan at the rim",
|
| 150 |
"advertised_ml": 768.9117686249999,
|
| 151 |
"advertised_us_floz": 25.999999999999996,
|
| 152 |
+
"difference_ml": -119.87450649817617,
|
| 153 |
+
"difference_pct": -15.59015109269829
|
| 154 |
},
|
| 155 |
"checks_all_ok": true,
|
| 156 |
"mass_kg": 0.067375,
|
|
|
|
| 159 |
"cup": {
|
| 160 |
"usd": "cup.usda",
|
| 161 |
"default_prim": "/HotecCup",
|
| 162 |
+
"sha256": "d28aa88339178e084020551fc11a44c5e691400bddb01049b534f7cf0b673199",
|
| 163 |
"target_size_m": [
|
| 164 |
0.0711,
|
| 165 |
0.0711,
|
|
|
|
| 219 |
}
|
| 220 |
},
|
| 221 |
"sha256": {
|
| 222 |
+
"README.md": "784e03f8c0c97414f2246cd8908cce90086eccf1caa6b947e9e18a51f05e1a1b",
|
| 223 |
+
"bowl.usda": "e1f14ec087b32e7f5ff1bf9bb4422e4314e2b32698436bc8b5c47313bcc53f40",
|
| 224 |
+
"cup.usda": "d28aa88339178e084020551fc11a44c5e691400bddb01049b534f7cf0b673199",
|
| 225 |
+
"parameters.json": "657b10b75e6f237818731a54df54041f107673617b274712baecff938e9fcd3c",
|
| 226 |
+
"plate.usda": "2adce4fe8a0778d5e50f331a21fe905aa8521b51490592dd50f3bc3cf816eab2"
|
| 227 |
}
|
| 228 |
}
|
hotec_wheatstraw/parameters.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
-
"parameters_sha256": "
|
| 4 |
-
"generator_sha256": "
|
| 5 |
"kinds": {
|
| 6 |
"plate": {
|
| 7 |
"rim_diameter_m": {
|
|
@@ -66,49 +66,83 @@
|
|
| 66 |
},
|
| 67 |
"bowl": {
|
| 68 |
"rim_diameter_m": {
|
| 69 |
-
"value": 0.
|
| 70 |
-
"status": "
|
| 71 |
-
"note": "
|
| 72 |
},
|
| 73 |
"height_m": {
|
| 74 |
"value": 0.07312,
|
| 75 |
"status": "measured",
|
| 76 |
-
"note": "
|
| 77 |
},
|
| 78 |
"wall_m": {
|
| 79 |
-
"value": 0.
|
| 80 |
-
"status": "
|
| 81 |
-
"note": "
|
| 82 |
},
|
| 83 |
"floor_m": {
|
| 84 |
-
"value": 0.
|
| 85 |
"status": "estimated",
|
| 86 |
-
"note": ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
},
|
| 88 |
"foot_diameter_m": {
|
| 89 |
"value": 0.06572,
|
| 90 |
"status": "measured",
|
| 91 |
-
"note": "
|
| 92 |
},
|
| 93 |
"foot_width_m": {
|
| 94 |
"value": 0.00316,
|
| 95 |
"status": "measured",
|
| 96 |
-
"note": "
|
| 97 |
},
|
| 98 |
"foot_height_m": {
|
| 99 |
"value": 0.00557,
|
| 100 |
"status": "measured",
|
| 101 |
-
"note": "
|
| 102 |
-
},
|
| 103 |
-
"side_bulge_m": {
|
| 104 |
-
"value": 0.008,
|
| 105 |
-
"status": "estimated",
|
| 106 |
-
"note": "rounded flank (NOT a hemisphere): sagitta of the side arc; the dominant capacity uncertainty"
|
| 107 |
},
|
| 108 |
"side_rows": {
|
| 109 |
-
"value":
|
| 110 |
"status": "estimated",
|
| 111 |
-
"note": "collision rows
|
| 112 |
},
|
| 113 |
"grooves": {
|
| 114 |
"value": {
|
|
@@ -210,17 +244,17 @@
|
|
| 210 |
"bowl": {
|
| 211 |
"rim_z_m": 0.07312,
|
| 212 |
"headspace_z_m": 0.06812,
|
| 213 |
-
"brimful_ml":
|
| 214 |
-
"brimful_us_floz":
|
| 215 |
-
"headspace_ml":
|
| 216 |
-
"mesh_brimful_ml":
|
| 217 |
-
"mesh_over_polyline": 0.
|
| 218 |
"polygon_area_factor": 0.9992862058229084,
|
| 219 |
"method": "pi * integral r_in(z)^2 dz of the delivered inner polyline from the cavity floor to the lowest rim point (temporary horizontal closure; asset not capped); mesh cross-check = signed volume of the inner surface closed by a fan at the rim",
|
| 220 |
"advertised_ml": 768.9117686249999,
|
| 221 |
"advertised_us_floz": 25.999999999999996,
|
| 222 |
-
"difference_ml": -
|
| 223 |
-
"difference_pct": -
|
| 224 |
},
|
| 225 |
"cup": {
|
| 226 |
"rim_z_m": 0.1049,
|
|
@@ -242,65 +276,49 @@
|
|
| 242 |
"plate": [],
|
| 243 |
"bowl": [
|
| 244 |
{
|
| 245 |
-
"wall_m": 0.
|
| 246 |
"foot_diameter_m": 0.05572,
|
| 247 |
-
"brimful_ml":
|
| 248 |
},
|
| 249 |
{
|
| 250 |
-
"wall_m": 0.
|
| 251 |
"foot_diameter_m": 0.06572,
|
| 252 |
-
"brimful_ml":
|
| 253 |
},
|
| 254 |
{
|
| 255 |
-
"wall_m": 0.
|
| 256 |
"foot_diameter_m": 0.07572,
|
| 257 |
-
"brimful_ml":
|
| 258 |
},
|
| 259 |
{
|
| 260 |
-
"wall_m": 0.
|
| 261 |
"foot_diameter_m": 0.05572,
|
| 262 |
-
"brimful_ml":
|
| 263 |
},
|
| 264 |
{
|
| 265 |
-
"wall_m": 0.
|
| 266 |
"foot_diameter_m": 0.06572,
|
| 267 |
-
"brimful_ml":
|
| 268 |
},
|
| 269 |
{
|
| 270 |
-
"wall_m": 0.
|
| 271 |
"foot_diameter_m": 0.07572,
|
| 272 |
-
"brimful_ml":
|
| 273 |
},
|
| 274 |
{
|
| 275 |
-
"wall_m": 0.
|
| 276 |
"foot_diameter_m": 0.05572,
|
| 277 |
-
"brimful_ml":
|
| 278 |
},
|
| 279 |
{
|
| 280 |
-
"wall_m": 0.
|
| 281 |
"foot_diameter_m": 0.06572,
|
| 282 |
-
"brimful_ml":
|
| 283 |
},
|
| 284 |
{
|
| 285 |
-
"wall_m": 0.
|
| 286 |
"foot_diameter_m": 0.07572,
|
| 287 |
-
"brimful_ml":
|
| 288 |
-
},
|
| 289 |
-
{
|
| 290 |
-
"side_bulge_m": 0.004,
|
| 291 |
-
"brimful_ml": 614.3636512123285
|
| 292 |
-
},
|
| 293 |
-
{
|
| 294 |
-
"side_bulge_m": 0.006,
|
| 295 |
-
"brimful_ml": 648.8792565266081
|
| 296 |
-
},
|
| 297 |
-
{
|
| 298 |
-
"side_bulge_m": 0.008,
|
| 299 |
-
"brimful_ml": 684.2997162383577
|
| 300 |
-
},
|
| 301 |
-
{
|
| 302 |
-
"side_bulge_m": 0.01,
|
| 303 |
-
"brimful_ml": 720.7483635267116
|
| 304 |
}
|
| 305 |
],
|
| 306 |
"cup": [
|
|
@@ -410,18 +428,18 @@
|
|
| 410 |
"simple_polygon": true,
|
| 411 |
"polygon_crossings": 0,
|
| 412 |
"inner_z_monotone": true,
|
| 413 |
-
"min_wall_m": 0.
|
| 414 |
"min_wall_ok": true,
|
| 415 |
-
"rim_flat_m": 0.
|
| 416 |
"rim_flat_ok": true
|
| 417 |
},
|
| 418 |
"mesh": {
|
| 419 |
"closed_and_oriented": true,
|
| 420 |
"unit_normals": true,
|
| 421 |
-
"min_face_area_m2": 3.
|
| 422 |
-
"material_volume_ml":
|
| 423 |
-
"points":
|
| 424 |
-
"triangles":
|
| 425 |
},
|
| 426 |
"collision": {
|
| 427 |
"cavity_probes_open": true,
|
|
@@ -429,28 +447,28 @@
|
|
| 429 |
"mid_radius_open": true,
|
| 430 |
"foot_solid": true,
|
| 431 |
"floor_solid": true,
|
| 432 |
-
"max_cavity_intrusion_m": 0.
|
| 433 |
"intrusion_ok": true,
|
| 434 |
-
"min_piece_volume_m3":
|
| 435 |
-
"pieces":
|
| 436 |
-
"max_collider_radius_m": 0.
|
| 437 |
-
"crest_radius_m": 0.
|
| 438 |
"no_protrusion": true
|
| 439 |
},
|
| 440 |
"dimensions": {
|
| 441 |
"target_size_m": [
|
| 442 |
-
0.
|
| 443 |
-
0.
|
| 444 |
0.07312
|
| 445 |
],
|
| 446 |
"actual_size_m": [
|
| 447 |
-
0.
|
| 448 |
-
0.
|
| 449 |
0.07312
|
| 450 |
],
|
| 451 |
"size_error_m": [
|
| 452 |
-
|
| 453 |
-
|
| 454 |
0.0
|
| 455 |
],
|
| 456 |
"min_z_m": 0.0,
|
|
|
|
| 1 |
{
|
| 2 |
"schema_version": 1,
|
| 3 |
+
"parameters_sha256": "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc",
|
| 4 |
+
"generator_sha256": "260b3aa0bed8b13f4c98f9d2da3f2e78ab5f5174cac2eb15123ecf8451957ed0",
|
| 5 |
"kinds": {
|
| 6 |
"plate": {
|
| 7 |
"rim_diameter_m": {
|
|
|
|
| 66 |
},
|
| 67 |
"bowl": {
|
| 68 |
"rim_diameter_m": {
|
| 69 |
+
"value": 0.14453,
|
| 70 |
+
"status": "measured",
|
| 71 |
+
"note": "callipers 2026-10-29: rim outer diameter, the outer rim corner at the top (the listing's 5.8 in / 148 mm was wrong)"
|
| 72 |
},
|
| 73 |
"height_m": {
|
| 74 |
"value": 0.07312,
|
| 75 |
"status": "measured",
|
| 76 |
+
"note": "callipers 2026-10-29: foot plane (the ring's base) to the rim top"
|
| 77 |
},
|
| 78 |
"wall_m": {
|
| 79 |
+
"value": 0.0028,
|
| 80 |
+
"status": "measured",
|
| 81 |
+
"note": "callipers 2026-10-29: body wall; a uniform shell, the outer surface is the inner curve offset by the wall along its outward normal"
|
| 82 |
},
|
| 83 |
"floor_m": {
|
| 84 |
+
"value": 0.003,
|
| 85 |
"status": "estimated",
|
| 86 |
+
"note": "the floor the depth scale assumes: the inner floor top foot_height + floor = 8.57 mm is the first profile point; the uniform 2.8 mm shell puts the underside at the centre at 5.77 mm"
|
| 87 |
+
},
|
| 88 |
+
"profile_points": {
|
| 89 |
+
"value": [
|
| 90 |
+
[
|
| 91 |
+
0.0,
|
| 92 |
+
0.00857
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
0.00947,
|
| 96 |
+
0.00894
|
| 97 |
+
],
|
| 98 |
+
[
|
| 99 |
+
0.01947,
|
| 100 |
+
0.01036
|
| 101 |
+
],
|
| 102 |
+
[
|
| 103 |
+
0.02947,
|
| 104 |
+
0.01245
|
| 105 |
+
],
|
| 106 |
+
[
|
| 107 |
+
0.03947,
|
| 108 |
+
0.01845
|
| 109 |
+
],
|
| 110 |
+
[
|
| 111 |
+
0.04947,
|
| 112 |
+
0.02623
|
| 113 |
+
],
|
| 114 |
+
[
|
| 115 |
+
0.05947,
|
| 116 |
+
0.04025
|
| 117 |
+
]
|
| 118 |
+
],
|
| 119 |
+
"status": "measured",
|
| 120 |
+
"note": "inner surface (radius, height above the foot plane) [m]: the user's 7 depth readings, 1 cm steps from the rim's inner edge read off the top of a 1 mm steel rule, scaled by depth_scale (raw readings and conversion: docs/hotec_wheatstraw_asset.md); the generator adds the rim edge (rim_diameter/2 - wall, height) and fits a PCHIP z(r) mirrored about the axis (flat centre)"
|
| 121 |
+
},
|
| 122 |
+
"depth_scale": {
|
| 123 |
+
"value": 0.959851,
|
| 124 |
+
"status": "derived",
|
| 125 |
+
"note": "derived from the three heights: (73.12 - 5.57 - 3.0) / 67.25, so the floor is 3.0 mm over the measured 5.57 mm ring (the raw depths left 0.3 mm); already in profile_points, recorded here and not re-applied"
|
| 126 |
},
|
| 127 |
"foot_diameter_m": {
|
| 128 |
"value": 0.06572,
|
| 129 |
"status": "measured",
|
| 130 |
+
"note": "callipers 2026-10-29: the foot ring's outer face diameter"
|
| 131 |
},
|
| 132 |
"foot_width_m": {
|
| 133 |
"value": 0.00316,
|
| 134 |
"status": "measured",
|
| 135 |
+
"note": "callipers 2026-10-29: the ring's radial width (inner face at foot_diameter/2 - width = 29.70 mm)"
|
| 136 |
},
|
| 137 |
"foot_height_m": {
|
| 138 |
"value": 0.00557,
|
| 139 |
"status": "measured",
|
| 140 |
+
"note": "callipers 2026-10-29: the ring's base to the body's lowest point (73.12 rim to the ring's bottom minus 67.55 rim to the base underside); enters the depth scale and the floor top; the rib runs from z = 0 up into the shell"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
},
|
| 142 |
"side_rows": {
|
| 143 |
+
"value": 4,
|
| 144 |
"status": "estimated",
|
| 145 |
+
"note": "interior collision rows on the inner curve besides the axis, the ring faces' normals and the rim, each where the curve departs most from its chord (4 -> 7 shell bands + the rib band, 192 pieces): cavity intrusion 0.61 mm by the chord check, 0.94 mm sampled on the hull faces (on the inner side a hull spans its whole 15-degree sector); 5 rows (216 pieces) give the same 0.94 mm"
|
| 146 |
},
|
| 147 |
"grooves": {
|
| 148 |
"value": {
|
|
|
|
| 244 |
"bowl": {
|
| 245 |
"rim_z_m": 0.07312,
|
| 246 |
"headspace_z_m": 0.06812,
|
| 247 |
+
"brimful_ml": 649.0372621268237,
|
| 248 |
+
"brimful_us_floz": 21.946560715898443,
|
| 249 |
+
"headspace_ml": 574.5386281412352,
|
| 250 |
+
"mesh_brimful_ml": 648.5739831084022,
|
| 251 |
+
"mesh_over_polyline": 0.9992862058229086,
|
| 252 |
"polygon_area_factor": 0.9992862058229084,
|
| 253 |
"method": "pi * integral r_in(z)^2 dz of the delivered inner polyline from the cavity floor to the lowest rim point (temporary horizontal closure; asset not capped); mesh cross-check = signed volume of the inner surface closed by a fan at the rim",
|
| 254 |
"advertised_ml": 768.9117686249999,
|
| 255 |
"advertised_us_floz": 25.999999999999996,
|
| 256 |
+
"difference_ml": -119.87450649817617,
|
| 257 |
+
"difference_pct": -15.59015109269829
|
| 258 |
},
|
| 259 |
"cup": {
|
| 260 |
"rim_z_m": 0.1049,
|
|
|
|
| 276 |
"plate": [],
|
| 277 |
"bowl": [
|
| 278 |
{
|
| 279 |
+
"wall_m": 0.0018,
|
| 280 |
"foot_diameter_m": 0.05572,
|
| 281 |
+
"brimful_ml": 655.9684542886183
|
| 282 |
},
|
| 283 |
{
|
| 284 |
+
"wall_m": 0.0018,
|
| 285 |
"foot_diameter_m": 0.06572,
|
| 286 |
+
"brimful_ml": 655.9728471650762
|
| 287 |
},
|
| 288 |
{
|
| 289 |
+
"wall_m": 0.0018,
|
| 290 |
"foot_diameter_m": 0.07572,
|
| 291 |
+
"brimful_ml": 655.9710881708972
|
| 292 |
},
|
| 293 |
{
|
| 294 |
+
"wall_m": 0.0028,
|
| 295 |
"foot_diameter_m": 0.05572,
|
| 296 |
+
"brimful_ml": 649.0312175773755
|
| 297 |
},
|
| 298 |
{
|
| 299 |
+
"wall_m": 0.0028,
|
| 300 |
"foot_diameter_m": 0.06572,
|
| 301 |
+
"brimful_ml": 649.0372621268237
|
| 302 |
},
|
| 303 |
{
|
| 304 |
+
"wall_m": 0.0028,
|
| 305 |
"foot_diameter_m": 0.07572,
|
| 306 |
+
"brimful_ml": 649.037908326807
|
| 307 |
},
|
| 308 |
{
|
| 309 |
+
"wall_m": 0.0038,
|
| 310 |
"foot_diameter_m": 0.05572,
|
| 311 |
+
"brimful_ml": 642.0729028367343
|
| 312 |
},
|
| 313 |
{
|
| 314 |
+
"wall_m": 0.0038,
|
| 315 |
"foot_diameter_m": 0.06572,
|
| 316 |
+
"brimful_ml": 642.0810573154405
|
| 317 |
},
|
| 318 |
{
|
| 319 |
+
"wall_m": 0.0038,
|
| 320 |
"foot_diameter_m": 0.07572,
|
| 321 |
+
"brimful_ml": 642.0822429456761
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 322 |
}
|
| 323 |
],
|
| 324 |
"cup": [
|
|
|
|
| 428 |
"simple_polygon": true,
|
| 429 |
"polygon_crossings": 0,
|
| 430 |
"inner_z_monotone": true,
|
| 431 |
+
"min_wall_m": 0.002222381631723583,
|
| 432 |
"min_wall_ok": true,
|
| 433 |
+
"rim_flat_m": 0.002799999999999997,
|
| 434 |
"rim_flat_ok": true
|
| 435 |
},
|
| 436 |
"mesh": {
|
| 437 |
"closed_and_oriented": true,
|
| 438 |
"unit_normals": true,
|
| 439 |
+
"min_face_area_m2": 3.760278917610129e-07,
|
| 440 |
+
"material_volume_ml": 89.53893006480381,
|
| 441 |
+
"points": 11330,
|
| 442 |
+
"triangles": 22656
|
| 443 |
},
|
| 444 |
"collision": {
|
| 445 |
"cavity_probes_open": true,
|
|
|
|
| 447 |
"mid_radius_open": true,
|
| 448 |
"foot_solid": true,
|
| 449 |
"floor_solid": true,
|
| 450 |
+
"max_cavity_intrusion_m": 0.0006117476926037482,
|
| 451 |
"intrusion_ok": true,
|
| 452 |
+
"min_piece_volume_m3": 5.1841413226429175e-08,
|
| 453 |
+
"pieces": 192,
|
| 454 |
+
"max_collider_radius_m": 0.07226500000012662,
|
| 455 |
+
"crest_radius_m": 0.072265,
|
| 456 |
"no_protrusion": true
|
| 457 |
},
|
| 458 |
"dimensions": {
|
| 459 |
"target_size_m": [
|
| 460 |
+
0.14453,
|
| 461 |
+
0.14453,
|
| 462 |
0.07312
|
| 463 |
],
|
| 464 |
"actual_size_m": [
|
| 465 |
+
0.14453,
|
| 466 |
+
0.14453,
|
| 467 |
0.07312
|
| 468 |
],
|
| 469 |
"size_error_m": [
|
| 470 |
+
0.0,
|
| 471 |
+
0.0,
|
| 472 |
0.0
|
| 473 |
],
|
| 474 |
"min_z_m": 0.0,
|
hotec_wheatstraw/source/README.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
| 1 |
# hotec_wheatstraw/source
|
| 2 |
|
| 3 |
`hotec_gen.py` is the generator, moved out of the code repo on 2026-10-21 (it was `code/src/dishsim/hotec_gen.py`) and
|
| 4 |
-
edited here on 2026-10-29: the bowl
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
Last run (2026-10-29,
|
| 12 |
-
repo root (code repo `plan` at `8b2a4fb` plus uncommitted
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
|
| 17 |
```bash
|
| 18 |
uv run --no-project --python 3.10 --with numpy==1.26.0 --with scipy==1.14.1 --with usd-core==24.5 --with matplotlib==3.9.2 \
|
| 19 |
python data/assets/hotec_wheatstraw/source/hotec_gen.py --out <scratch> --no-figures \
|
| 20 |
-
--set plate.mass_kg=0.094625 --set bowl.mass_kg=0.067375 --set cup.mass_kg=0.0595
|
| 21 |
-
--set bowl.foot_diameter_m=0.06572 --set bowl.foot_width_m=0.00316 --set bowl.foot_height_m=0.00557 \
|
| 22 |
-
--set bowl.height_m=0.07312
|
| 23 |
```
|
| 24 |
|
| 25 |
The same build inside the container: `code/util/run_py.sh data/assets/hotec_wheatstraw/source/hotec_gen.py` with the
|
|
@@ -31,6 +31,10 @@ same flags. The generator refuses to overwrite, so build into a scratch folder,
|
|
| 31 |
code/util/run_py.sh -m pytest data/assets/hotec_wheatstraw/source -q # test_hotec_gen.py, Kit-free
|
| 32 |
```
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# hotec_wheatstraw/source
|
| 2 |
|
| 3 |
`hotec_gen.py` is the generator, moved out of the code repo on 2026-10-21 (it was `code/src/dishsim/hotec_gen.py`) and
|
| 4 |
+
edited here twice on 2026-10-29: v3 gave the bowl a vertical foot ring; v4 builds the bowl inner-first from the user's
|
| 5 |
+
measurements (`BowlProfile`). The inner surface is a PCHIP z(r) through `profile_points` (the converted depth readings)
|
| 6 |
+
and the rim edge, mirrored about the axis. The outer surface is that curve offset by the 2.8 mm wall along its normal,
|
| 7 |
+
then a 0.9 mm straight step to the measured outer rim corner, so the rim top is flat and one wall wide. The foot ring is
|
| 8 |
+
a plain rib from the foot plane up into the shell; its collision band is buried 1 mm in the shell. The plate and cup
|
| 9 |
+
profiles are unchanged. Its sha256 `260b3aa0bed8b13f4c98f9d2da3f2e78ab5f5174cac2eb15123ecf8451957ed0` is the
|
| 10 |
+
`generator_sha256` stamped in every USD and in `catalog.json` (v3's file `da46d390...` and the 2026-10-21 file
|
| 11 |
+
`c7fdeef1...` stamped v3 and v2); its docstring still shows the old `-m dishsim.hotec_gen` form.
|
| 12 |
|
| 13 |
+
Last run (2026-10-29, v4: the bowl from the user's depth profile, rim, wall, height and foot ring, all in the module
|
| 14 |
+
table, so only the masses are set), on the Mac from the code repo root (code repo `plan` at `8b2a4fb` plus uncommitted
|
| 15 |
+
edits; the generator lives only in this folder), in a uv environment with Python 3.10, numpy 1.26.0, scipy 1.14.1 and
|
| 16 |
+
usd-core 24.5, as v3. A second build reproduced every file byte for byte. `--no-figures` keeps the catalog to the
|
| 17 |
+
shipped files:
|
| 18 |
|
| 19 |
```bash
|
| 20 |
uv run --no-project --python 3.10 --with numpy==1.26.0 --with scipy==1.14.1 --with usd-core==24.5 --with matplotlib==3.9.2 \
|
| 21 |
python data/assets/hotec_wheatstraw/source/hotec_gen.py --out <scratch> --no-figures \
|
| 22 |
+
--set plate.mass_kg=0.094625 --set bowl.mass_kg=0.067375 --set cup.mass_kg=0.0595
|
|
|
|
|
|
|
| 23 |
```
|
| 24 |
|
| 25 |
The same build inside the container: `code/util/run_py.sh data/assets/hotec_wheatstraw/source/hotec_gen.py` with the
|
|
|
|
| 31 |
code/util/run_py.sh -m pytest data/assets/hotec_wheatstraw/source -q # test_hotec_gen.py, Kit-free
|
| 32 |
```
|
| 33 |
|
| 34 |
+
On the Mac the same pytest runs in the uv environment above plus `--with pytest` (19 passed, 1 skipped: the USD round
|
| 35 |
+
trip needs the container).
|
| 36 |
+
|
| 37 |
+
v3 (2026-10-29) was the v4 command plus `--set bowl.foot_diameter_m=0.06572 --set bowl.foot_width_m=0.00316 --set
|
| 38 |
+
bowl.foot_height_m=0.00557 --set bowl.height_m=0.07312`, run with the generator `da46d390...`. v2 (2026-09-22) was
|
| 39 |
+
`code/util/run_py.sh -m dishsim.hotec_gen --out data/assets/models/hotec_wheatstraw/v2 --set plate.mass_kg=0.094625
|
| 40 |
+
--set bowl.mass_kg=0.067375 --set cup.mass_kg=0.0595` (corallab container; the generator file committed at `9e3b163`).
|
hotec_wheatstraw/source/hotec_gen.py
CHANGED
|
@@ -11,11 +11,13 @@ control rows are revolved into convex collision pieces; a dense PCHIP curve thro
|
|
| 11 |
rows is revolved into the visual shell, so the collider never sits outside the visual by more
|
| 12 |
than the decorative feature depth. Metres, Z up, origin at the base centre (foot plane z = 0).
|
| 13 |
|
| 14 |
-
The bowl
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
No mass is authored anywhere (no ``PhysicsMassAPI``, no ``physics:density``); the user
|
| 21 |
measures the pieces. Capacity is the exact volume of revolution of the inner profile up to the
|
|
@@ -94,22 +96,37 @@ PARAMETERS = {
|
|
| 94 |
"no decorative grooves seen on the plate"),
|
| 95 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
| 96 |
},
|
| 97 |
-
"bowl": {
|
| 98 |
-
"rim_diameter_m": _p(.
|
| 99 |
-
|
| 100 |
-
"
|
| 101 |
-
"
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
"grooves": _p({"heights_m": [.054, .060, .066], "depth_m": .0006, "half_width_m": .00125}, "estimated",
|
| 114 |
"three horizontal grooves on the upper body, 6 mm pitch; visual only, collision smooth"),
|
| 115 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
|
@@ -131,7 +148,7 @@ PARAMETERS = {
|
|
| 131 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
| 132 |
},
|
| 133 |
}
|
| 134 |
-
STATUSES = ("nominal", "estimated", "measured")
|
| 135 |
|
| 136 |
|
| 137 |
# --------------------------------------------------------------------------- parameters
|
|
@@ -310,12 +327,12 @@ class Curves:
|
|
| 310 |
offset dips below the cavity floor it is projected up onto the floor plane, which makes the
|
| 311 |
flat floor (the plate's eating well) a DERIVED radius rather than an estimate.
|
| 312 |
|
| 313 |
-
|
| 314 |
-
inner (0, ft) (rfi, ft) and two points a third and two thirds of the way along the floor top to the wall's
|
| 315 |
-
first inner point, so every band is a non-degenerate convex quad (or triangle) inside the material.
|
| 316 |
"""
|
| 317 |
|
| 318 |
def __init__(self, kind, v):
|
|
|
|
|
|
|
| 319 |
self.kind, self.v = kind, v
|
| 320 |
R, H = v["rim_diameter_m"] / 2, v["height_m"]
|
| 321 |
w, fl, fw, fh = v["wall_m"], v["floor_m"], v["foot_width_m"], v["foot_height_m"]
|
|
@@ -337,18 +354,6 @@ class Curves:
|
|
| 337 |
((rb, 0.), self._floor(np.array([rb, 0.]) + w * n_f))]
|
| 338 |
self.side_rows = 0
|
| 339 |
self.foot_outer_radius = rb
|
| 340 |
-
elif kind == "bowl": # the vertical foot ring (2026-10-29)
|
| 341 |
-
rfo = v["foot_diameter_m"] / 2
|
| 342 |
-
rfi = rfo - fw
|
| 343 |
-
self.outer, self.tangent = _arc((rfo, fh), (R, H - self.lr), v["side_bulge_m"])
|
| 344 |
-
r_e = float(self.inner_at(0.)[0]) # the wall's first inner point, on the floor top
|
| 345 |
-
if not r_e > rfi + 1e-6:
|
| 346 |
-
raise ValueError(f"bowl foot: the wall's first inner point r {r_e:.5f} is not outside the ring's inner "
|
| 347 |
-
f"face {rfi:.5f}; the vertical-ring rows need it there")
|
| 348 |
-
self.foot = [((0., fh), (0., self.ft)), ((rfi, fh), (rfi, self.ft)),
|
| 349 |
-
((rfi, 0.), (rfi + (r_e - rfi) / 3, self.ft)), ((rfo, 0.), (rfi + 2 * (r_e - rfi) / 3, self.ft))]
|
| 350 |
-
self.side_rows = int(v["side_rows"])
|
| 351 |
-
self.foot_outer_radius = rfo
|
| 352 |
else:
|
| 353 |
rfo = v["foot_diameter_m"] / 2
|
| 354 |
rfi = rfo - fw
|
|
@@ -402,6 +407,131 @@ class Curves:
|
|
| 402 |
return np.asarray(rows, dtype=float)
|
| 403 |
|
| 404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
def _check_control_rows(rows):
|
| 406 |
if not (abs(rows[0, 0]) < 1e-12 and abs(rows[0, 2]) < 1e-12):
|
| 407 |
raise ValueError("row 0 must be on the axis for both curves")
|
|
@@ -446,6 +576,8 @@ def profile(kind, v, wall_samples=36, lip_samples=3):
|
|
| 446 |
|
| 447 |
The sparse rows are a subset of the dense rows; dense rows additionally carry the grooves.
|
| 448 |
"""
|
|
|
|
|
|
|
| 449 |
curves = Curves(kind, v)
|
| 450 |
sparse_us = curves.sparse_us()
|
| 451 |
rows = curves.rows(sparse_us, lip_samples=1)
|
|
@@ -511,6 +643,9 @@ def geometry(kind, v, sectors=_SECTORS):
|
|
| 511 |
rows, dense, meta = profile(kind, v)
|
| 512 |
(p, n, f), _ = _lathe(dense) # visual: ring = 96
|
| 513 |
_, pieces = _lathe(rows, sectors=sectors) # collision: the control rows only
|
|
|
|
|
|
|
|
|
|
| 514 |
n_rows = len(dense)
|
| 515 |
if len(p) != 2 + 2 * (n_rows - 1) * RING:
|
| 516 |
raise AssertionError("unexpected lathe vertex layout")
|
|
@@ -522,7 +657,8 @@ def geometry(kind, v, sectors=_SECTORS):
|
|
| 522 |
if signed_volume(p, f) <= 0:
|
| 523 |
raise ValueError("visual shell is inverted")
|
| 524 |
return {"visual": (p, n, f), "pieces": pieces, "dense": dense, "rows": rows, "meta": meta,
|
| 525 |
-
"bands": len(rows) - 1, "sectors": sectors, "ring": RING,
|
|
|
|
| 526 |
"bounds_m": np.array([p.min(0), p.max(0)])}
|
| 527 |
|
| 528 |
|
|
@@ -615,7 +751,7 @@ def brimful_capacity(kind, v, geom, headspace_m=HEADSPACE_M):
|
|
| 615 |
|
| 616 |
|
| 617 |
def sensitivity(kind, table):
|
| 618 |
-
"""Brimful capacity over wall +-1 mm x foot/base +-10 mm (and the
|
| 619 |
if kind not in ADVERTISED_ML:
|
| 620 |
return []
|
| 621 |
base = values(table, kind)
|
|
@@ -627,7 +763,7 @@ def sensitivity(kind, table):
|
|
| 627 |
_, dense, _ = profile(kind, v)
|
| 628 |
out.append({"wall_m": v["wall_m"], foot_key: v[foot_key],
|
| 629 |
"brimful_ml": cavity_volume_m3(dense, v["height_m"]) * 1e6})
|
| 630 |
-
if
|
| 631 |
for sb in (.004, .006, .008, .010):
|
| 632 |
v = dict(base, side_bulge_m=sb)
|
| 633 |
_, dense, _ = profile(kind, v)
|
|
@@ -926,7 +1062,8 @@ def write_figures(kind, v, geom, capacity, checks, out_dir, ax_pair=None):
|
|
| 926 |
for sign in (1, -1):
|
| 927 |
ax.plot(sign * dense[:, 0] * mm, dense[:, 1] * mm, color="#1f4e79", lw=1.6, label="outer (visual)" if sign == 1 else None)
|
| 928 |
ax.plot(sign * dense[:, 2] * mm, dense[:, 3] * mm, color="#c0392b", lw=1.6, label="inner (visual)" if sign == 1 else None)
|
| 929 |
-
|
|
|
|
| 930 |
quad = np.array([[a[0], a[1]], [b[0], b[1]], [b[2], b[3]], [a[2], a[3]]]) * mm
|
| 931 |
quad[:, 0] *= sign
|
| 932 |
ax.add_patch(Polygon(quad, closed=True, facecolor="#f39c12", alpha=.18, edgecolor="#b9770e", lw=.6))
|
|
@@ -1083,7 +1220,8 @@ def build(out_dir, overrides=None, origin="base", sectors=_SECTORS, force=False,
|
|
| 1083 |
"mass_status": {kind: mass_status(table, kind) for kind in KINDS}, "dimension_status": DIMENSION_STATUS,
|
| 1084 |
"collision_method": f"one convex hull per control-row band per {360 // sectors}-degree sector (mid-angle vertices); "
|
| 1085 |
"the control rows are a subset of the dense visual rows; cavities and foot recess open; "
|
| 1086 |
-
"decorative grooves/flutes are visual only
|
|
|
|
| 1087 |
"variant_set": {"name": "color", "variants": list(COLOURS), "default": DEFAULT_COLOUR, "colours_rgb": COLOURS},
|
| 1088 |
"items": {}, "sha256": {}}
|
| 1089 |
parameters = {"schema_version": 1, "parameters_sha256": table_hash, "generator_sha256": catalog["generator_sha256"],
|
|
|
|
| 11 |
rows is revolved into the visual shell, so the collider never sits outside the visual by more
|
| 12 |
than the decorative feature depth. Metres, Z up, origin at the base centre (foot plane z = 0).
|
| 13 |
|
| 14 |
+
The bowl is built INNER-FIRST from the user's measurements (2026-10-29, ``BowlProfile``): the inner surface is a
|
| 15 |
+
PCHIP z(r) through ``profile_points`` (the converted depth readings) and the rim edge, mirrored about the axis so the
|
| 16 |
+
centre is flat; the outer surface is that curve offset by ``wall_m`` along its outward normal (a uniform shell, the
|
| 17 |
+
underside domed and lowest at the centre); the rim top is flat and one wall wide out to the measured rim; the foot
|
| 18 |
+
ring is a plain rib, the annulus ``foot_diameter_m / 2 - foot_width_m`` .. ``foot_diameter_m / 2`` from z = 0 up into
|
| 19 |
+
the shell, with vertical faces. The plate keeps its drafted foot (the outer wall from the ring's bottom edge, a 3 mm
|
| 20 |
+
step to the ceiling), the cup its straight taper.
|
| 21 |
|
| 22 |
No mass is authored anywhere (no ``PhysicsMassAPI``, no ``physics:density``); the user
|
| 23 |
measures the pieces. Capacity is the exact volume of revolution of the inner profile up to the
|
|
|
|
| 96 |
"no decorative grooves seen on the plate"),
|
| 97 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
| 98 |
},
|
| 99 |
+
"bowl": { # built inner-first from the user's measurements (BowlProfile)
|
| 100 |
+
"rim_diameter_m": _p(.14453, "measured", "callipers 2026-10-29: rim outer diameter, the outer rim corner at the "
|
| 101 |
+
"top (the listing's 5.8 in / 148 mm was wrong)"),
|
| 102 |
+
"height_m": _p(.07312, "measured", "callipers 2026-10-29: foot plane (the ring's base) to the rim top"),
|
| 103 |
+
"wall_m": _p(.0028, "measured", "callipers 2026-10-29: body wall; a uniform shell, the outer surface is the inner "
|
| 104 |
+
"curve offset by the wall along its outward normal"),
|
| 105 |
+
"floor_m": _p(.0030, "estimated", "the floor the depth scale assumes: the inner floor top foot_height + floor = "
|
| 106 |
+
"8.57 mm is the first profile point; the uniform 2.8 mm shell puts the underside "
|
| 107 |
+
"at the centre at 5.77 mm"),
|
| 108 |
+
"profile_points": _p([[0., .00857], [.00947, .00894], [.01947, .01036], [.02947, .01245], [.03947, .01845],
|
| 109 |
+
[.04947, .02623], [.05947, .04025]], "measured",
|
| 110 |
+
"inner surface (radius, height above the foot plane) [m]: the user's 7 depth readings, 1 cm "
|
| 111 |
+
"steps from the rim's inner edge read off the top of a 1 mm steel rule, scaled by depth_scale "
|
| 112 |
+
"(raw readings and conversion: docs/hotec_wheatstraw_asset.md); the generator adds the rim "
|
| 113 |
+
"edge (rim_diameter/2 - wall, height) and fits a PCHIP z(r) mirrored about the axis (flat "
|
| 114 |
+
"centre)"),
|
| 115 |
+
"depth_scale": _p(round((.07312 - .00557 - .0030) / .06725, 6), "derived",
|
| 116 |
+
"derived from the three heights: (73.12 - 5.57 - 3.0) / 67.25, so the floor is 3.0 mm over the "
|
| 117 |
+
"measured 5.57 mm ring (the raw depths left 0.3 mm); already in profile_points, recorded here "
|
| 118 |
+
"and not re-applied"),
|
| 119 |
+
"foot_diameter_m": _p(.06572, "measured", "callipers 2026-10-29: the foot ring's outer face diameter"),
|
| 120 |
+
"foot_width_m": _p(.00316, "measured", "callipers 2026-10-29: the ring's radial width (inner face at "
|
| 121 |
+
"foot_diameter/2 - width = 29.70 mm)"),
|
| 122 |
+
"foot_height_m": _p(.00557, "measured", "callipers 2026-10-29: the ring's base to the body's lowest point (73.12 rim "
|
| 123 |
+
"to the ring's bottom minus 67.55 rim to the base underside); enters the "
|
| 124 |
+
"depth scale and the floor top; the rib runs from z = 0 up into the shell"),
|
| 125 |
+
"side_rows": _p(4, "estimated", "interior collision rows on the inner curve besides the axis, the ring faces' "
|
| 126 |
+
"normals and the rim, each where the curve departs most from its chord (4 -> 7 "
|
| 127 |
+
"shell bands + the rib band, 192 pieces): cavity intrusion 0.61 mm by the chord "
|
| 128 |
+
"check, 0.94 mm sampled on the hull faces (on the inner side a hull spans its whole "
|
| 129 |
+
"15-degree sector); 5 rows (216 pieces) give the same 0.94 mm"),
|
| 130 |
"grooves": _p({"heights_m": [.054, .060, .066], "depth_m": .0006, "half_width_m": .00125}, "estimated",
|
| 131 |
"three horizontal grooves on the upper body, 6 mm pitch; visual only, collision smooth"),
|
| 132 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
|
|
|
| 148 |
"mass_kg": _p(None, "nominal", "not authored until measured: --set kind.mass_kg=<kg> authors physics:mass on the rigid-body prim"),
|
| 149 |
},
|
| 150 |
}
|
| 151 |
+
STATUSES = ("nominal", "estimated", "measured", "derived")
|
| 152 |
|
| 153 |
|
| 154 |
# --------------------------------------------------------------------------- parameters
|
|
|
|
| 327 |
offset dips below the cavity floor it is projected up onto the floor plane, which makes the
|
| 328 |
flat floor (the plate's eating well) a DERIVED radius rather than an estimate.
|
| 329 |
|
| 330 |
+
Plate and cup; the bowl is built inner-first by ``BowlProfile``.
|
|
|
|
|
|
|
| 331 |
"""
|
| 332 |
|
| 333 |
def __init__(self, kind, v):
|
| 334 |
+
if kind == "bowl":
|
| 335 |
+
raise ValueError("the bowl is built inner-first by BowlProfile")
|
| 336 |
self.kind, self.v = kind, v
|
| 337 |
R, H = v["rim_diameter_m"] / 2, v["height_m"]
|
| 338 |
w, fl, fw, fh = v["wall_m"], v["floor_m"], v["foot_width_m"], v["foot_height_m"]
|
|
|
|
| 354 |
((rb, 0.), self._floor(np.array([rb, 0.]) + w * n_f))]
|
| 355 |
self.side_rows = 0
|
| 356 |
self.foot_outer_radius = rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
else:
|
| 358 |
rfo = v["foot_diameter_m"] / 2
|
| 359 |
rfi = rfo - fw
|
|
|
|
| 407 |
return np.asarray(rows, dtype=float)
|
| 408 |
|
| 409 |
|
| 410 |
+
class BowlProfile:
|
| 411 |
+
"""The bowl, inner-first from the user's measurements (2026-10-29).
|
| 412 |
+
|
| 413 |
+
Inner surface: a PCHIP z(r) through ``profile_points`` and the rim edge (rim_diameter/2 - wall, height), mirrored
|
| 414 |
+
about the axis so the centre is flat. Outer surface: that curve offset by ``wall_m`` along its outward normal (a
|
| 415 |
+
uniform shell, the underside domed and lowest at the centre), then a straight step to the measured outer rim
|
| 416 |
+
corner (rim_diameter/2, height), so the rim top is flat and one wall wide. The plate's and cup's quarter-ellipse lip
|
| 417 |
+
is not used: the wall leans about 13 deg at the rim, so a lip starting w/2 down would leave the bowl about 0.5 mm
|
| 418 |
+
narrower than the measured rim. Foot: a plain rib, the annulus foot_diameter/2 - foot_width .. foot_diameter/2
|
| 419 |
+
from z = 0 up to the underside, vertical faces, no heel and no ceiling.
|
| 420 |
+
|
| 421 |
+
Visual rows: (outer, inner) normal pairs, with the rib cut into the outer contour as a notch: A (the underside
|
| 422 |
+
over the inner face) down to B (the inner face at z 0), across to C (the outer face at z 0), up to D (the
|
| 423 |
+
underside over the outer face); B and C pair with inner points between A's and D's normal partners (a measured
|
| 424 |
+
node there among them). Collision rows: the axis, the normals of A and D, ``side_rows`` interior rows each where
|
| 425 |
+
the inner curve departs most from its chord, and the rim; the rib is its own band from z 0 to the underside plus
|
| 426 |
+
``RIB_BURY_M``, so the union of the pieces is solid and the ring's faces are in the colliders.
|
| 427 |
+
"""
|
| 428 |
+
RIB_BURY_M = .001 # the rib's top inside the shell
|
| 429 |
+
TOP_GAP_M = .0003 # the last regular shell row sits this far below the rim; then the step to the rim corner
|
| 430 |
+
|
| 431 |
+
def __init__(self, v):
|
| 432 |
+
from scipy.interpolate import PchipInterpolator
|
| 433 |
+
R, H, w = v["rim_diameter_m"] / 2, v["height_m"], v["wall_m"]
|
| 434 |
+
self.v, self.R, self.H, self.w, self.r_e = v, R, H, w, R - w
|
| 435 |
+
pts = np.asarray(v["profile_points"], dtype=float).reshape(-1, 2)
|
| 436 |
+
r, z = np.append(pts[:, 0], self.r_e), np.append(pts[:, 1], H)
|
| 437 |
+
if abs(r[0]) > 1e-12 or (np.diff(r) <= 0).any() or (np.diff(z) <= 0).any():
|
| 438 |
+
raise ValueError("bowl profile_points must start on the axis and rise strictly outward to the rim edge")
|
| 439 |
+
self.nodes = np.stack((r, z), axis=1)
|
| 440 |
+
self.f = PchipInterpolator(np.concatenate((-r[:0:-1], r)), np.concatenate((z[:0:-1], z)))
|
| 441 |
+
self.df, d2f = self.f.derivative(), self.f.derivative(2)
|
| 442 |
+
t = np.linspace(0., self.r_e, 4001)
|
| 443 |
+
slope = self.df(t)
|
| 444 |
+
if (1 + w * d2f(t) / (1 + slope ** 2) ** 1.5 <= 0).any():
|
| 445 |
+
raise ValueError("bowl: the inner curve bends tighter than the wall somewhere; its outer offset would fold")
|
| 446 |
+
ds = np.sqrt(1 + slope ** 2)
|
| 447 |
+
self.t_tab, self.s_tab = t, np.concatenate(([0.], np.cumsum((ds[1:] + ds[:-1]) / 2 * np.diff(t))))
|
| 448 |
+
self.rfo = v["foot_diameter_m"] / 2
|
| 449 |
+
self.rfi = self.rfo - v["foot_width_m"]
|
| 450 |
+
if not 0 < self.rfi < self.rfo < self.outer(self.r_e)[0]:
|
| 451 |
+
raise ValueError("bowl: the foot ring must lie under the shell")
|
| 452 |
+
self.t_a = _bisect(lambda q: self.outer(q)[0], 0., self.r_e, self.rfi)
|
| 453 |
+
self.t_d = _bisect(lambda q: self.outer(q)[0], 0., self.r_e, self.rfo)
|
| 454 |
+
self.t_top = _bisect(lambda q: self.inner(q)[1], 0., self.r_e, H - self.TOP_GAP_M)
|
| 455 |
+
|
| 456 |
+
def inner(self, t):
|
| 457 |
+
return np.array([t, float(self.f(t))])
|
| 458 |
+
|
| 459 |
+
def outer(self, t):
|
| 460 |
+
s = float(self.df(t))
|
| 461 |
+
return self.inner(t) + self.w * np.array([s, -1.]) / math.hypot(1., s)
|
| 462 |
+
|
| 463 |
+
def _deviation(self, t, t0, t1):
|
| 464 |
+
"""How far the inner chord t0 -> t1 lies on the cavity side of the curve at t (> 0: a collider there intrudes)."""
|
| 465 |
+
p0, d, q = self.inner(t0), self.inner(t1) - self.inner(t0), self.inner(t)
|
| 466 |
+
return float(-(d[0] * (q[1] - p0[1]) - d[1] * (q[0] - p0[0])) / np.linalg.norm(d))
|
| 467 |
+
|
| 468 |
+
def _notch_partners(self):
|
| 469 |
+
"""Inner radii for the rib's bottom corners B and C: thirds between A's and D's partners, a node kept on them."""
|
| 470 |
+
lo, hi = self.t_a, self.t_d
|
| 471 |
+
ts = [lo + (hi - lo) / 3, lo + 2 * (hi - lo) / 3]
|
| 472 |
+
for node in self.nodes[:, 0]:
|
| 473 |
+
if lo < node < hi:
|
| 474 |
+
ts[int(np.argmin([abs(node - s) for s in ts]))] = float(node)
|
| 475 |
+
return sorted(ts)
|
| 476 |
+
|
| 477 |
+
def dense_ts(self, wall_samples, outer_zs):
|
| 478 |
+
"""Inner radii of the visual rows: the nodes, the ring faces' normals, the top row, arc-length samples, outer heights."""
|
| 479 |
+
first = [*self.nodes[:-1, 0], self.t_a, self.t_d, self.t_top]
|
| 480 |
+
rest = [float(np.interp(k / wall_samples * self.s_tab[-1], self.s_tab, self.t_tab)) for k in range(wall_samples + 1)]
|
| 481 |
+
z0, z1 = self.outer(0.)[1], self.outer(self.t_top)[1]
|
| 482 |
+
rest += [_bisect(lambda q: self.outer(q)[1], 0., self.t_top, z) for z in outer_zs if z0 < z < z1]
|
| 483 |
+
ts = []
|
| 484 |
+
for t in first + rest:
|
| 485 |
+
if t > self.t_top + 1e-12 or self.t_a + 1e-9 < t < self.t_d - 1e-9:
|
| 486 |
+
continue
|
| 487 |
+
if all(abs(t - s) > 1e-6 for s in ts):
|
| 488 |
+
ts.append(float(t))
|
| 489 |
+
return sorted(ts)
|
| 490 |
+
|
| 491 |
+
def collision_ts(self, candidates):
|
| 492 |
+
"""The axis, the ring faces' normals and the rim, then ``side_rows`` candidates, each at the largest intrusion."""
|
| 493 |
+
ts = sorted({0., self.t_a, self.t_d, self.r_e})
|
| 494 |
+
pool = [t for t in candidates if min(abs(t - s) for s in ts) > 1e-9]
|
| 495 |
+
for _ in range(int(self.v["side_rows"])):
|
| 496 |
+
best = max(pool, key=lambda t: self._deviation(t, ts[int(np.searchsorted(ts, t)) - 1],
|
| 497 |
+
ts[int(np.searchsorted(ts, t))]))
|
| 498 |
+
ts = sorted(ts + [best])
|
| 499 |
+
pool.remove(best)
|
| 500 |
+
return ts
|
| 501 |
+
|
| 502 |
+
def rows(self, ts, notch):
|
| 503 |
+
"""Rows (outer r, z, inner r, z) at the inner radii ``ts`` (below the rim), then the rim corner row; ``notch``
|
| 504 |
+
cuts the rib into the outer contour (visual rows only)."""
|
| 505 |
+
rows = []
|
| 506 |
+
for t in ts:
|
| 507 |
+
rows.append((*self.outer(t), *self.inner(t)))
|
| 508 |
+
if notch and abs(t - self.t_a) < 1e-12:
|
| 509 |
+
for tb, corner in zip(self._notch_partners(), ((self.rfi, 0.), (self.rfo, 0.))):
|
| 510 |
+
rows.append((*corner, *self.inner(tb)))
|
| 511 |
+
rows.append((self.R, self.H, self.r_e, self.H))
|
| 512 |
+
return np.asarray(rows, dtype=float)
|
| 513 |
+
|
| 514 |
+
def profile(self, wall_samples=36):
|
| 515 |
+
grooves = self.v.get("grooves", {})
|
| 516 |
+
dense_ts = self.dense_ts(wall_samples, groove_rows(grooves))
|
| 517 |
+
sparse_ts = [t for t in self.collision_ts(dense_ts) if t < self.r_e - 1e-12]
|
| 518 |
+
rows = self.rows(sparse_ts, notch=False)
|
| 519 |
+
_check_control_rows(rows)
|
| 520 |
+
dense = self.rows(dense_ts, notch=True)
|
| 521 |
+
_check_control_rows(dense)
|
| 522 |
+
for row in rows: # subset guarantee
|
| 523 |
+
if np.abs(dense - row).sum(axis=1).min() > 1e-9:
|
| 524 |
+
raise AssertionError("a control row is missing from the dense rows")
|
| 525 |
+
dense = _apply_grooves(dense, grooves, self.w)
|
| 526 |
+
z_a, z_d = float(self.outer(self.t_a)[1]), float(self.outer(self.t_d)[1])
|
| 527 |
+
rib = np.array([[self.rfo, 0., self.rfi, 0.],
|
| 528 |
+
[self.rfo, z_d + self.RIB_BURY_M, self.rfi, z_a + self.RIB_BURY_M]])
|
| 529 |
+
meta = {"well_diameter_m": 0., "u_emerge": 0., "rim_inset_m": 0., "rim_flat_m": float(rows[-1, 0] - rows[-1, 2]),
|
| 530 |
+
"lip_radius_m": 0., "rib_rows": rib, "underside_centre_m": float(self.outer(0.)[1]),
|
| 531 |
+
"ring_root_m": [z_a, z_d]}
|
| 532 |
+
return rows, dense, meta
|
| 533 |
+
|
| 534 |
+
|
| 535 |
def _check_control_rows(rows):
|
| 536 |
if not (abs(rows[0, 0]) < 1e-12 and abs(rows[0, 2]) < 1e-12):
|
| 537 |
raise ValueError("row 0 must be on the axis for both curves")
|
|
|
|
| 576 |
|
| 577 |
The sparse rows are a subset of the dense rows; dense rows additionally carry the grooves.
|
| 578 |
"""
|
| 579 |
+
if kind == "bowl":
|
| 580 |
+
return BowlProfile(v).profile(wall_samples)
|
| 581 |
curves = Curves(kind, v)
|
| 582 |
sparse_us = curves.sparse_us()
|
| 583 |
rows = curves.rows(sparse_us, lip_samples=1)
|
|
|
|
| 643 |
rows, dense, meta = profile(kind, v)
|
| 644 |
(p, n, f), _ = _lathe(dense) # visual: ring = 96
|
| 645 |
_, pieces = _lathe(rows, sectors=sectors) # collision: the control rows only
|
| 646 |
+
rib = meta.get("rib_rows") # the bowl's rib: its own band, the top buried in the shell
|
| 647 |
+
if rib is not None:
|
| 648 |
+
pieces = pieces + _lathe(rib, sectors=sectors)[1]
|
| 649 |
n_rows = len(dense)
|
| 650 |
if len(p) != 2 + 2 * (n_rows - 1) * RING:
|
| 651 |
raise AssertionError("unexpected lathe vertex layout")
|
|
|
|
| 657 |
if signed_volume(p, f) <= 0:
|
| 658 |
raise ValueError("visual shell is inverted")
|
| 659 |
return {"visual": (p, n, f), "pieces": pieces, "dense": dense, "rows": rows, "meta": meta,
|
| 660 |
+
"bands": len(rows) - 1 + (len(rib) - 1 if rib is not None else 0), "sectors": sectors, "ring": RING,
|
| 661 |
+
"fluted": fluted,
|
| 662 |
"bounds_m": np.array([p.min(0), p.max(0)])}
|
| 663 |
|
| 664 |
|
|
|
|
| 751 |
|
| 752 |
|
| 753 |
def sensitivity(kind, table):
|
| 754 |
+
"""Brimful capacity over wall +-1 mm x foot/base +-10 mm (and the side bulge where there is one); never used to tune."""
|
| 755 |
if kind not in ADVERTISED_ML:
|
| 756 |
return []
|
| 757 |
base = values(table, kind)
|
|
|
|
| 763 |
_, dense, _ = profile(kind, v)
|
| 764 |
out.append({"wall_m": v["wall_m"], foot_key: v[foot_key],
|
| 765 |
"brimful_ml": cavity_volume_m3(dense, v["height_m"]) * 1e6})
|
| 766 |
+
if "side_bulge_m" in base:
|
| 767 |
for sb in (.004, .006, .008, .010):
|
| 768 |
v = dict(base, side_bulge_m=sb)
|
| 769 |
_, dense, _ = profile(kind, v)
|
|
|
|
| 1062 |
for sign in (1, -1):
|
| 1063 |
ax.plot(sign * dense[:, 0] * mm, dense[:, 1] * mm, color="#1f4e79", lw=1.6, label="outer (visual)" if sign == 1 else None)
|
| 1064 |
ax.plot(sign * dense[:, 2] * mm, dense[:, 3] * mm, color="#c0392b", lw=1.6, label="inner (visual)" if sign == 1 else None)
|
| 1065 |
+
rib = geom["meta"].get("rib_rows")
|
| 1066 |
+
for a, b in list(zip(rows[:-1], rows[1:])) + (list(zip(rib[:-1], rib[1:])) if rib is not None else []):
|
| 1067 |
quad = np.array([[a[0], a[1]], [b[0], b[1]], [b[2], b[3]], [a[2], a[3]]]) * mm
|
| 1068 |
quad[:, 0] *= sign
|
| 1069 |
ax.add_patch(Polygon(quad, closed=True, facecolor="#f39c12", alpha=.18, edgecolor="#b9770e", lw=.6))
|
|
|
|
| 1220 |
"mass_status": {kind: mass_status(table, kind) for kind in KINDS}, "dimension_status": DIMENSION_STATUS,
|
| 1221 |
"collision_method": f"one convex hull per control-row band per {360 // sectors}-degree sector (mid-angle vertices); "
|
| 1222 |
"the control rows are a subset of the dense visual rows; cavities and foot recess open; "
|
| 1223 |
+
"decorative grooves/flutes are visual only; the bowl's foot rib is its own band, "
|
| 1224 |
+
"its top buried 1 mm in the shell",
|
| 1225 |
"variant_set": {"name": "color", "variants": list(COLOURS), "default": DEFAULT_COLOUR, "colours_rgb": COLOURS},
|
| 1226 |
"items": {}, "sha256": {}}
|
| 1227 |
parameters = {"schema_version": 1, "parameters_sha256": table_hash, "generator_sha256": catalog["generator_sha256"],
|
hotec_wheatstraw/source/test_hotec_gen.py
CHANGED
|
@@ -20,7 +20,8 @@ from scipy.spatial import ConvexHull
|
|
| 20 |
import hotec_gen as h # this folder (pytest prepends it to sys.path)
|
| 21 |
|
| 22 |
ROOT = Path(__file__).resolve().parents[4] # the repo root (data/assets/hotec_wheatstraw/source/ -> 4 up)
|
| 23 |
-
NOMINAL = {"plate": (.2286, .0400), "bowl": (.
|
|
|
|
| 24 |
ADVERTISED_ML = {"bowl": 769., "cup": 355.}
|
| 25 |
|
| 26 |
|
|
@@ -135,8 +136,8 @@ def test_parameter_tags_and_hash():
|
|
| 135 |
for name, entry in entries.items():
|
| 136 |
assert entry["status"] in h.STATUSES, (kind, name)
|
| 137 |
diameter, height = NOMINAL[kind]
|
| 138 |
-
assert entries["rim_diameter_m"]["value"] == diameter and entries["rim_diameter_m"]["status"] ==
|
| 139 |
-
assert entries["height_m"]["value"] == height and entries["height_m"]["status"] ==
|
| 140 |
assert h.parameters_sha256(table) == h.parameters_sha256(h.resolve())
|
| 141 |
changed = h.resolve({"bowl.wall_m": .0032})
|
| 142 |
assert changed["bowl"]["wall_m"]["status"] == "measured"
|
|
|
|
| 20 |
import hotec_gen as h # this folder (pytest prepends it to sys.path)
|
| 21 |
|
| 22 |
ROOT = Path(__file__).resolve().parents[4] # the repo root (data/assets/hotec_wheatstraw/source/ -> 4 up)
|
| 23 |
+
NOMINAL = {"plate": (.2286, .0400), "bowl": (.14453, .07312), "cup": (.0711, .1049)} # the brief's literals
|
| 24 |
+
SIZE_STATUS = {"plate": "nominal", "bowl": "measured", "cup": "nominal"} # the bowl measured 2026-10-29 (callipers)
|
| 25 |
ADVERTISED_ML = {"bowl": 769., "cup": 355.}
|
| 26 |
|
| 27 |
|
|
|
|
| 136 |
for name, entry in entries.items():
|
| 137 |
assert entry["status"] in h.STATUSES, (kind, name)
|
| 138 |
diameter, height = NOMINAL[kind]
|
| 139 |
+
assert entries["rim_diameter_m"]["value"] == diameter and entries["rim_diameter_m"]["status"] == SIZE_STATUS[kind]
|
| 140 |
+
assert entries["height_m"]["value"] == height and entries["height_m"]["status"] == SIZE_STATUS[kind]
|
| 141 |
assert h.parameters_sha256(table) == h.parameters_sha256(h.resolve())
|
| 142 |
changed = h.resolve({"bowl.wall_m": .0032})
|
| 143 |
assert changed["bowl"]["wall_m"]["status"] == "measured"
|
hotec_wheatstraw/usd/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Masses are authored as physics:mass on each default prim (average of 8 pieces on
|
|
| 7 |
| kind | size [m] | pieces | brimful [mL] | advertised [mL] |
|
| 8 |
|---|---|---:|---:|---:|
|
| 9 |
| plate | 0.2286 x 0.2286 x 0.0400 | 192 | - | - |
|
| 10 |
-
| bowl | 0.
|
| 11 |
| cup | 0.0711 x 0.0711 x 0.1049 | 168 | 283 | 355 |
|
| 12 |
|
| 13 |
-
generator sha256
|
|
|
|
| 7 |
| kind | size [m] | pieces | brimful [mL] | advertised [mL] |
|
| 8 |
|---|---|---:|---:|---:|
|
| 9 |
| plate | 0.2286 x 0.2286 x 0.0400 | 192 | - | - |
|
| 10 |
+
| bowl | 0.1445 x 0.1445 x 0.0731 | 192 | 649 | 769 |
|
| 11 |
| cup | 0.0711 x 0.0711 x 0.1049 | 168 | 283 | 355 |
|
| 12 |
|
| 13 |
+
generator sha256 260b3aa0bed8b13f..., parameters sha256 b81d1e97cf7d6dd1...
|
hotec_wheatstraw/usd/bowl.usda
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
hotec_wheatstraw/usd/cup.usda
CHANGED
|
@@ -3,10 +3,10 @@
|
|
| 3 |
customLayerData = {
|
| 4 |
string dimension_status = "nominal listing targets plus documented estimates; not measured"
|
| 5 |
string generator = "dishsim.hotec_gen"
|
| 6 |
-
string generator_sha256 = "
|
| 7 |
string hotec_kind = "cup"
|
| 8 |
string hotec_parameters_json = '{"base_diameter_m": {"note": "about 79 % of the rim: the mild taper seen in the photos", "status": "estimated", "value": 0.056}, "floor_m": {"note": "", "status": "estimated", "value": 0.004}, "flutes": {"note": "vertical facets of the original cup; count and depth to be measured; count must divide the 96-vertex ring; outer surface only", "status": "estimated", "value": {"count": 12, "depth_m": 0.0006, "fade_z_m": [0.012, 0.02, 0.09, 0.098], "shape": "facet"}}, "foot_height_m": {"note": "shallow recess under the base", "status": "estimated", "value": 0.002}, "foot_width_m": {"note": "base ring width", "status": "estimated", "value": 0.004}, "height_m": {"note": "listing: 4.13 in, PROVISIONAL", "status": "nominal", "value": 0.1049}, "mass_kg": {"note": "user override: cup.mass_kg=0.0595", "status": "measured", "value": 0.0595}, "rim_diameter_m": {"note": "listing: 2.8 in maximum width, PROVISIONAL (the listing mixes the 20-pack fluted cup and the 24-pack ringed cup)", "status": "nominal", "value": 0.0711}, "rings": {"note": "the ringed-cup alternative: set heights_m to e.g. [0.030, 0.050, 0.070] and flutes.count to 0", "status": "estimated", "value": {"depth_m": 0.0006, "half_width_m": 0.00125, "heights_m": []}}, "wall_m": {"note": "cups are moulded thinner than plates", "status": "estimated", "value": 0.0025}}'
|
| 9 |
-
string hotec_parameters_sha256 = "
|
| 10 |
string mass_status = "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 11 |
string origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 12 |
}
|
|
@@ -27,7 +27,7 @@ def Xform "HotecCup" (
|
|
| 27 |
custom string hotec:kind = "cup"
|
| 28 |
custom string hotec:massStatus = "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 29 |
custom string hotec:origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 30 |
-
custom string hotec:parametersSha256 = "
|
| 31 |
float physics:mass = 0.0595
|
| 32 |
bool physxRigidBody:enableCCD = 1
|
| 33 |
float physxRigidBody:maxDepenetrationVelocity = 0.5
|
|
|
|
| 3 |
customLayerData = {
|
| 4 |
string dimension_status = "nominal listing targets plus documented estimates; not measured"
|
| 5 |
string generator = "dishsim.hotec_gen"
|
| 6 |
+
string generator_sha256 = "260b3aa0bed8b13f4c98f9d2da3f2e78ab5f5174cac2eb15123ecf8451957ed0"
|
| 7 |
string hotec_kind = "cup"
|
| 8 |
string hotec_parameters_json = '{"base_diameter_m": {"note": "about 79 % of the rim: the mild taper seen in the photos", "status": "estimated", "value": 0.056}, "floor_m": {"note": "", "status": "estimated", "value": 0.004}, "flutes": {"note": "vertical facets of the original cup; count and depth to be measured; count must divide the 96-vertex ring; outer surface only", "status": "estimated", "value": {"count": 12, "depth_m": 0.0006, "fade_z_m": [0.012, 0.02, 0.09, 0.098], "shape": "facet"}}, "foot_height_m": {"note": "shallow recess under the base", "status": "estimated", "value": 0.002}, "foot_width_m": {"note": "base ring width", "status": "estimated", "value": 0.004}, "height_m": {"note": "listing: 4.13 in, PROVISIONAL", "status": "nominal", "value": 0.1049}, "mass_kg": {"note": "user override: cup.mass_kg=0.0595", "status": "measured", "value": 0.0595}, "rim_diameter_m": {"note": "listing: 2.8 in maximum width, PROVISIONAL (the listing mixes the 20-pack fluted cup and the 24-pack ringed cup)", "status": "nominal", "value": 0.0711}, "rings": {"note": "the ringed-cup alternative: set heights_m to e.g. [0.030, 0.050, 0.070] and flutes.count to 0", "status": "estimated", "value": {"depth_m": 0.0006, "half_width_m": 0.00125, "heights_m": []}}, "wall_m": {"note": "cups are moulded thinner than plates", "status": "estimated", "value": 0.0025}}'
|
| 9 |
+
string hotec_parameters_sha256 = "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc"
|
| 10 |
string mass_status = "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 11 |
string origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 12 |
}
|
|
|
|
| 27 |
custom string hotec:kind = "cup"
|
| 28 |
custom string hotec:massStatus = "measured: physics:mass = 0.0595 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 29 |
custom string hotec:origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 30 |
+
custom string hotec:parametersSha256 = "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc"
|
| 31 |
float physics:mass = 0.0595
|
| 32 |
bool physxRigidBody:enableCCD = 1
|
| 33 |
float physxRigidBody:maxDepenetrationVelocity = 0.5
|
hotec_wheatstraw/usd/plate.usda
CHANGED
|
@@ -3,10 +3,10 @@
|
|
| 3 |
customLayerData = {
|
| 4 |
string dimension_status = "nominal listing targets plus documented estimates; not measured"
|
| 5 |
string generator = "dishsim.hotec_gen"
|
| 6 |
-
string generator_sha256 = "
|
| 7 |
string hotec_kind = "plate"
|
| 8 |
string hotec_parameters_json = '{"floor_m": {"note": "floor slightly thicker than the wall", "status": "estimated", "value": 0.004}, "foot_diameter_m": {"note": "about 61 % of the rim; a coupe plate carries a wide foot ring", "status": "estimated", "value": 0.14}, "foot_height_m": {"note": "recess depth under the base centre", "status": "estimated", "value": 0.004}, "foot_width_m": {"note": "moulded ring width", "status": "estimated", "value": 0.006}, "grooves": {"note": "no decorative grooves seen on the plate", "status": "estimated", "value": {"depth_m": 0.0006, "half_width_m": 0.00125, "heights_m": []}}, "height_m": {"note": "listing: 1.6 in overall height, foot plane to rim top", "status": "nominal", "value": 0.04}, "mass_kg": {"note": "user override: plate.mass_kg=0.094625", "status": "measured", "value": 0.094625}, "rim_diameter_m": {"note": "listing: 9 in maximum outer diameter", "status": "nominal", "value": 0.2286}, "side_bulge_m": {"note": "sagitta of the convex underside arc foot -> rim (0 = straight cone); the flat eating well is DERIVED: where the wall offset rises above the floor", "status": "estimated", "value": 0.006}, "side_rows": {"note": "collision rows along the side arc (2 -> 8 bands, 192 pieces): measured cavity intrusion 0.59 mm; 3 rows (216 pieces) would give 0.42 mm", "status": "estimated", "value": 2}, "wall_m": {"note": "wheat-straw PP mouldings run 2.5-4 mm", "status": "estimated", "value": 0.0035}}'
|
| 9 |
-
string hotec_parameters_sha256 = "
|
| 10 |
string mass_status = "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 11 |
string origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 12 |
}
|
|
@@ -27,7 +27,7 @@ def Xform "HotecPlate" (
|
|
| 27 |
custom string hotec:kind = "plate"
|
| 28 |
custom string hotec:massStatus = "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 29 |
custom string hotec:origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 30 |
-
custom string hotec:parametersSha256 = "
|
| 31 |
float physics:mass = 0.094625
|
| 32 |
bool physxRigidBody:enableCCD = 1
|
| 33 |
float physxRigidBody:maxDepenetrationVelocity = 0.5
|
|
|
|
| 3 |
customLayerData = {
|
| 4 |
string dimension_status = "nominal listing targets plus documented estimates; not measured"
|
| 5 |
string generator = "dishsim.hotec_gen"
|
| 6 |
+
string generator_sha256 = "260b3aa0bed8b13f4c98f9d2da3f2e78ab5f5174cac2eb15123ecf8451957ed0"
|
| 7 |
string hotec_kind = "plate"
|
| 8 |
string hotec_parameters_json = '{"floor_m": {"note": "floor slightly thicker than the wall", "status": "estimated", "value": 0.004}, "foot_diameter_m": {"note": "about 61 % of the rim; a coupe plate carries a wide foot ring", "status": "estimated", "value": 0.14}, "foot_height_m": {"note": "recess depth under the base centre", "status": "estimated", "value": 0.004}, "foot_width_m": {"note": "moulded ring width", "status": "estimated", "value": 0.006}, "grooves": {"note": "no decorative grooves seen on the plate", "status": "estimated", "value": {"depth_m": 0.0006, "half_width_m": 0.00125, "heights_m": []}}, "height_m": {"note": "listing: 1.6 in overall height, foot plane to rim top", "status": "nominal", "value": 0.04}, "mass_kg": {"note": "user override: plate.mass_kg=0.094625", "status": "measured", "value": 0.094625}, "rim_diameter_m": {"note": "listing: 9 in maximum outer diameter", "status": "nominal", "value": 0.2286}, "side_bulge_m": {"note": "sagitta of the convex underside arc foot -> rim (0 = straight cone); the flat eating well is DERIVED: where the wall offset rises above the floor", "status": "estimated", "value": 0.006}, "side_rows": {"note": "collision rows along the side arc (2 -> 8 bands, 192 pieces): measured cavity intrusion 0.59 mm; 3 rows (216 pieces) would give 0.42 mm", "status": "estimated", "value": 2}, "wall_m": {"note": "wheat-straw PP mouldings run 2.5-4 mm", "status": "estimated", "value": 0.0035}}'
|
| 9 |
+
string hotec_parameters_sha256 = "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc"
|
| 10 |
string mass_status = "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 11 |
string origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 12 |
}
|
|
|
|
| 27 |
custom string hotec:kind = "plate"
|
| 28 |
custom string hotec:massStatus = "measured: physics:mass = 0.094625 kg on the rigid-body prim (average of 8 pieces on a kitchen scale, 2026-09-22: 8 bowls 539 g, 8 cups 476 g, 8 plates 757 g); no density, centre of mass or inertia authored (PhysX derives them from the collision shells)"
|
| 29 |
custom string hotec:origin = "base centre: z = 0 at the foot plane, +Z up, opening toward +Z"
|
| 30 |
+
custom string hotec:parametersSha256 = "b81d1e97cf7d6dd148da841a2f0006420411ad9a7b6430d77ba7f76cbe1c1ffc"
|
| 31 |
float physics:mass = 0.094625
|
| 32 |
bool physxRigidBody:enableCCD = 1
|
| 33 |
float physxRigidBody:maxDepenetrationVelocity = 0.5
|