def testWithAppend(self) : def factory() : return self.model.append_new(surface.CoordinateBreak) self.z.GetUpdate() return_surf = return_to_coordinate_frame(self.model, self.first, self.last, include_null_transforms=False, factory=factory) self.z.GetUpdate() self.coord_return_common_tests(return_surf)
def testOmitZeroThicknesses(self): self.z.GetUpdate() return_surf = return_to_coordinate_frame(self.model, self.first, self.last, include_null_transforms=False) self.z.GetUpdate() self.coord_return_common_tests(return_surf)
def testWithCursor(self) : insert_point = self.last insertion_point_sequence = count(insert_point+1) def factory() : return self.model.insert_new(next(insertion_point_sequence), surface.CoordinateBreak) self.z.GetUpdate() return_surf = return_to_coordinate_frame(self.model, self.first, self.last, include_null_transforms=False, factory=factory) self.z.GetUpdate() self.coord_return_common_tests(return_surf)
def testWithAppend(self): def factory(): return self.model.append_new(surface.CoordinateBreak) self.z.GetUpdate() return_surf = return_to_coordinate_frame(self.model, self.first, self.last, include_null_transforms=False, factory=factory) self.z.GetUpdate() self.coord_return_common_tests(return_surf)
def testWithCursor(self): insert_point = self.last insertion_point_sequence = count(insert_point+1) def factory(): return self.model.insert_new(next(insertion_point_sequence), surface.CoordinateBreak) self.z.GetUpdate() return_surf = return_to_coordinate_frame(self.model, self.first, self.last, include_null_transforms=False, factory=factory) self.z.GetUpdate() self.coord_return_common_tests(return_surf)
def testFull(self): return_surf = return_to_coordinate_frame(self.model, self.first, self.last) self.z.GetUpdate() self.coord_return_common_tests(return_surf)