Commit 7b072c4
feat: Enhance vis.py show routine (#1855)
* feat: Enhance vis.py show routine
- Add parameters azimuth viewup and clipping_range to allow for
improved control of the rendering.
- Always call ResetCamera early so the camera is in a known
state before applying user defined parameters, some of which
are relative.
* test: Add testing of viewup and clipping_range
* Fix the issue with not updated view
Reset camera orientation if no explicit position is provided.
* Use original logic
---------
Co-authored-by: AU <adam-urbanczyk@users.noreply.github.com>1 parent 4a5eff0 commit 7b072c4
2 files changed
+34
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
| 404 | + | |
| 405 | + | |
403 | 406 | | |
404 | 407 | | |
405 | 408 | | |
| |||
503 | 506 | | |
504 | 507 | | |
505 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
506 | 524 | | |
507 | 525 | | |
508 | | - | |
| 526 | + | |
509 | 527 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
517 | 532 | | |
518 | 533 | | |
519 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
0 commit comments