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

Method get_num_points

pointersect/inference/structures.py:101–109  ·  view source on GitHub ↗

get number of points (excluding point at inf) but including the invalid points.

(self)

Source from the content-addressed store, hash-verified

99 )
100
101 def get_num_points(self) -> int:
102 """
103 get number of points (excluding point at inf)
104 but including the invalid points.
105 """
106 if self.included_point_at_inf:
107 return self.xyz_w.size(1) - 1
108 else:
109 return self.xyz_w.size(1)
110
111 def get_num_valid_points(self, bidx: int) -> int:
112 """

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected