def debug_box_out(self, p_min: Union[Unit, Point2, Point3], p_max: Union[Unit, Point2, Point3], color=None): """ Draws a box with p_min and p_max as corners. Don't forget to add 'await self._client.send_debug'. """ self._debug_boxes.append(debug_pb.DebugBox( min=self.to_debug_point(p_min), max=self.to_debug_point(p_max), color=self.to_debug_color(color) ))
def debug_box_out(self, p_min: Union[Unit, Point2, Point3], p_max: Union[Unit, Point2, Point3], color=None): """ Draws a box with p_min and p_max as corners. """ self._debug_boxes.append( debug_pb.DebugBox(min=self.to_debug_point(p_min), max=self.to_debug_point(p_max), color=self.to_debug_color(color)))
def to_proto(self): return debug_pb.DebugBox( min=self.to_debug_point(self._start_point), max=self.to_debug_point(self._end_point), color=self.to_debug_color(self._color), )