Commit 4c3310f
feat(cad): FEM/gmsh meshing is backend-agnostic (works under adacpp)
Rewrite import_into_gmsh_use_nativepointer to go through the active CAD
backend instead of pythonocc directly: iterate sub-shapes via
backend.solids/faces/edges, translate via backend.transform, and feed gmsh
each sub-shape pointer via backend.to_topods_pointer. Under adacpp the pointer
is to its OCCT 7.9.3 TopoDS_Shape — ABI-valid for gmsh's OCCT, so gmsh stays a
pointer consumer with no kernel mixing.
Add solids/edges/to_topods_pointer/make_wire to both backends; route
Beam.line_occ through backend.make_wire (was raw pythonocc).
Under ADAPY_CAD_BACKEND=adacpp: solid + shell + line FEM meshing all work
(IPE300 solid mesh = 506 elems). tests/core under adacpp 614->638 pass.
OccBackend unchanged (655 pass), ruff clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent cad7472 commit 4c3310f
3 files changed
Lines changed: 63 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
312 | 312 | | |
313 | | - | |
314 | | - | |
315 | | - | |
| 313 | + | |
316 | 314 | | |
317 | 315 | | |
318 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | 191 | | |
185 | 192 | | |
| |||
260 | 267 | | |
261 | 268 | | |
262 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
263 | 288 | | |
264 | 289 | | |
265 | 290 | | |
| |||
376 | 401 | | |
377 | 402 | | |
378 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
379 | 409 | | |
380 | 410 | | |
381 | 411 | | |
| |||
454 | 484 | | |
455 | 485 | | |
456 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
457 | 498 | | |
458 | 499 | | |
459 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
403 | 405 | | |
404 | | - | |
| 406 | + | |
405 | 407 | | |
| 408 | + | |
406 | 409 | | |
407 | 410 | | |
408 | 411 | | |
409 | | - | |
410 | 412 | | |
411 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
412 | 421 | | |
413 | 422 | | |
414 | | - | |
415 | 423 | | |
416 | 424 | | |
417 | | - | |
418 | | - | |
| 425 | + | |
419 | 426 | | |
420 | 427 | | |
421 | 428 | | |
422 | | - | |
423 | | - | |
| 429 | + | |
424 | 430 | | |
425 | 431 | | |
426 | | - | |
427 | | - | |
| 432 | + | |
428 | 433 | | |
429 | | - | |
430 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
431 | 437 | | |
432 | 438 | | |
433 | 439 | | |
| |||
0 commit comments