v3d.Point3d#

class visu3d.Point3d(**kwargs)[source]#

Bases: visu3d.array_dataclass.DataclassArray

3d point cloud.

p#

3d (x, y, z) coordinates

Type:

FloatArray[’*shape 3’]

rgb#

uint8 color

Type:

Optional[ui8[’*shape 3’]]

p: FloatArray['*shape 3']#
rgb: ui8['*shape 3'] | None = None#
fig_config: plotly.TraceConfig = TraceConfig(     name=None,     num_samples=10000, )#
clip(min: etils.enp.array_types.typing.FloatArray | float | None = None, max: etils.enp.array_types.typing.FloatArray | float | None = None) visu3d.dc_arrays.point.Point3d[source]#

Clip the position coordinates to the (min, max) boundaries.

apply_transform(tr: visu3d.dc_arrays.transformation.Transform) visu3d.dc_arrays.point.Point3d[source]#
apply_px_from_cam(spec: camera_spec_lib.CameraSpec) Point2d[source]#

Apply the px_from_cam @ self transformation.

make_traces() list[plotly.basedatatypes.BaseTraceType][source]#

Construct the traces of the given object.