メインコンテンツへスキップ

class Object3D

3Dポイントクラウド向けのW&Bクラス。

method Object3D.__init__

__init__(
    data_or_path: 'np.ndarray | str | pathlib.Path | TextIO | dict',
    caption: 'str | None' = None,
    **kwargs: 'str | FileFormat3D | None'
) → None
W&BのObject3Dオブジェクトを作成します。 引数:
  • data_or_path: Object3Dは、ファイルまたはNumPy配列から初期化できます。
  • caption: 表示用の、オブジェクトに関連付けられたキャプション。
例: NumPy配列の形状は、次のいずれかである必要があります
[[x y z],       ...] nx3
[[x y z c],     ...] nx4 where c is a category with supported range [1, 14]
[[x y z r g b], ...] nx6 where is rgb is color