MCPcopy Create free account
hub / github.com/apple/ml-pointersect / clone

Method clone

pointersect/inference/structures.py:138–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 return self
137
138 def clone(self) -> 'PointCloud':
139 data_dict = dict()
140 for attr_name in self.attr_names:
141 arr = getattr(self, attr_name, None)
142 if arr is not None:
143 data_dict[attr_name] = arr.clone()
144 else:
145 data_dict[attr_name] = None
146 data_dict['included_point_at_inf'] = self.included_point_at_inf
147 return PointCloud(**data_dict)
148
149 def drop_features(self, drop_normal: bool = True):
150 """Drop features related to camera pose used to capture the point"""

Callers

nothing calls this directly

Calls 2

PointCloudClass · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected