octree
Transforms that build an octree and its features.
Classes:
-
BuildOctreeβBuild an octree from positions stored in a dictionary.
-
OctreeFeaturesβExtract per-node features from an octree via
octree.get_input_feature.
BuildOctree [source] ΒΆ
BuildOctree(
*,
pos_key: str,
dst_octree_key: str,
depth: int,
full_depth: int = 2,
batch_size: int = 1,
normal_key: str | None = None,
feature_key: str | None = None,
label_key: str | None = None,
batch_key: str | None = None,
dst_points_key: str | None = None,
)
Bases: DictTransform
Build an octree from positions stored in a dictionary.


Parameters:
-
pos_key(str) βKey holding the point positions.
-
dst_octree_key(str) βKey under which the octree is stored.
-
depth(int) βOctree depth.
-
full_depth(int, default:2) βFull depth of the octree.
-
batch_size(int, default:1) βBatch size.
-
normal_key(str | None, default:None) βKey holding surface normals.
-
feature_key(str | None, default:None) βKey holding point features.
-
label_key(str | None, default:None) βKey holding per-point labels.
-
batch_key(str | None, default:None) βKey holding batch indices.
-
dst_points_key(str | None, default:None) βKey under which the octree points are stored.
OctreeFeatures [source] ΒΆ
OctreeFeatures(
keys: KeyCollection,
features_type: str,
nempty: bool = False,
dst_keys: Optional[KeyCollection] = None,
allow_missing_keys: bool = False,
)
Bases: DictTransform
Extract per-node features from an octree via octree.get_input_feature.


Parameters:
-
keys(KeyCollection) βKeys holding
Octreeinstances to extract features from. -
features_type(str) βFeature spec passed to
octree.get_input_feature(e.g."ND"for normals + depth,"NDFP"for normals + depth + features + position). -
nempty(bool, default:False) βIf
True, return features only for non-empty nodes; otherwise include empty-node padding. -
dst_keys(Optional[KeyCollection], default:None) βWhere to store the extracted feature tensors. Defaults to
keys. -
allow_missing_keys(bool, default:False) βIf
True, silently skip absent keys.