- Drop Python 3.10 support
- Add
hash()
support (e.g. afteretree.spec_like
). - Added:
visu3d.math.rotation_utils.rot_to_rad
.
- Add
use_hw_coords
flag tointerp_img
.
- Fix
etils
import error.
1.5.2 - 2023-06-29
- Fix import error in Python 3.11
- Now require Python 3.9 (drop 3.8 support)
1.5.1 - 2023-03-20
- Add
torch==2.0.0
support
1.5.0 - 2023-03-13
- Add
torch
support! (Fix #12) v3d.math
:- Fixed:
.ndim
attribute error when using@tf.function
- Fixed:
- Breaking:
@dataclass(frozen=True)
is now automatically applied
1.4.0 - 2023-01-16
- DataclassArrays:
- Added:
v3d.Spec360
camera spec to support 360 videos.
- Added:
v3d.math
:- Added:
v3d.math.interp_img
- Added:
v3d.math.carthesian_to_spherical
andv3d.math.spherical_to_carthesian
- Added:
- Visualization:
- Added:
v3d.make_fig
supportsv3d.make_fig(a, b, c)
(in addition ofv3d.make_fig([a, b, c])
) - Added:
v3d.fig_config.cam_scale
to globally control the size of the cameras. - Changed: Do not add
0
suffix in the figure labels (for the first element) - Fixed:
v3d.make_fig(pts, num_samples_point3d=None)
works (previously the argument had no effect).
- Added:
- Fixed: Subsampling for displaying simple
np.array
point clouds (regression from previous release).
1.3.0 - 2022-10-17
v3d.math
to expose:- Rotation utils (convert from/to rotation matrix)
- Subsampling util (
v3d.math.subsample
) - Interpolation util (
v3d.math.interp_points
)
DataclassArray
now supports dynamic shape fields (shape withNone
), likeArray[..., None, None]
.- More trace customization options:
- All
v3d.DataclassParams
objects now have a.fig_config
property (customizable withobj = obj.replace_fig_config(**options)
). - Automatic subsample customizable with
points.replace_fig_config(num_samples=10_000)
. - Object names displayed in plotly are customizable using
points.replace_fig_config(name='My point cloud')
. v3d.fig_config.num_sample_xyz = 123
to overwrite the default number of sampled rays, points,... (None
for no subsampling)
- All
DataclassArray.__dca_params__
can be set tov3d.DataclassParams
to configure the dataclass options.
v3d
dataclass array implementation has been moved to it's independentdataclass_array
package.- Any object implementing the
.make_traces
protocol is not visualizable byv3d.make_fig
. No need to inheritv3d.Visualizable
anymore. - Support more complex
DType
(FloatArray
,... acceptbfloat16
,float64
,...).
- Translation by subtraction (
ray - np.array([0, 0, 0])
) now works FigConfig
property (cam.fig_config
,...) works correctly for batched camera.
1.2.0 - 2022-05-27
- Camera are now displayed with a complete frame.
1.1.0 - 2022-05-13
- Normalize
look_at
by default