round point before discretisation

这个提交包含在:
jasminium
2021-01-05 11:51:26 +01:00
父节点 a7d412a9e5
当前提交 0955da5335

查看文件

@@ -69,13 +69,13 @@ class Edge(UserObjectGeometry):
if self.dorotate: if self.dorotate:
self.__dorotate() self.__dorotate()
p3 = uip.round_to_grid_static_point(p1)
p4 = uip.round_to_grid_static_point(p2)
p1, p2 = uip.check_box_points(p1, p2, self.__str__()) p1, p2 = uip.check_box_points(p1, p2, self.__str__())
xs, ys, zs = p1 xs, ys, zs = p1
xf, yf, zf = p2 xf, yf, zf = p2
p3 = uip.round_to_grid_static_point(p1)
p4 = uip.round_to_grid_static_point(p2)
material = next((x for x in grid.materials if x.ID == material_id), None) material = next((x for x in grid.materials if x.ID == material_id), None)
if not material: if not material: