Commit 5167a11
Expose support contact geometry helpers (#1552)
Summary:
Pull Request resolved: #1552
Exposes the shared Momentum support-contact and support-polygon helpers through `pymomentum.geometry`. The binding layer now only marshals NumPy skeleton/contact arrays while Momentum owns floor-locator, plane-collision, and convex-hull computations.
`support_polygon` now uses Momentum's positions-only support-contact helper so it does not build parent-index, parent-offset, or floor-position arrays when only hull inputs are needed. The binding also documents that skeleton-state conversion populates only world transforms for these geometry helpers and makes the default plane u-axis fallback robust when the normal is parallel to the preferred axis.
Reviewed By: cstollmeta
Differential Revision: D109891382
fbshipit-source-id: 22ebf00ab14393ffca397726d256a6e0b7c554f01 parent 81b0de1 commit 5167a11
5 files changed
Lines changed: 505 additions & 0 deletions
File tree
- pymomentum
- cmake
- geometry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
1232 | 1235 | | |
1233 | 1236 | | |
1234 | 1237 | | |
| |||
0 commit comments