tataratat / gustaf

python library to process and visualize numerical-analysis-geometries
https://tataratat.github.io/gustaf
Other
16 stars 8 forks source link

Keyword between vedo and gustaf for camera/cam in show function differ #212

Open clemens-fricke opened 1 month ago

clemens-fricke commented 1 month ago

In vedo the option to define a preset camera is called camera in gustaf it is cam.

But vedo tells you that you should use the keyword camera to get reproducible results.

###################################################
## Template python code to position this camera: ##
cam = dict(
    position=(0.500000, 0.549231, 3.16544),
    focal_point=(0.500000, 0.549231, 0),
    viewup=(0, 1.00000, 0),
    roll=0,
    distance=3.16544,
    clipping_range=(2.96500, 3.42540),
)
show(mymeshes, camera=cam)
###################################################

We should have a discussion if we should rename the keyword to be in line with vedo so that it is easier for our users.

j042 commented 1 month ago

Ok and let's unpack some kwargs