def init_process(self): self.k = 0 self.path = [] self.slices = [] self.pair = False self.levels = mesh.get_range_values(self.mesh.z_min, self.mesh.z_max, self.track_height)
def get_contours_path(self): self.k = 0 self.path = [] self.slices = [] self.pair = False self.levels = mesh.get_range_values(self.mesh.z_min, self.mesh.z_max, self.track_height) slices = [self.mesh.get_slice(level) for level in self.levels] self.path = self.mesh.get_path_from_slices(slices)