From 0955da533516ff7af3f11d70031badceb0929b1b Mon Sep 17 00:00:00 2001 From: jasminium Date: Tue, 5 Jan 2021 11:51:26 +0100 Subject: [PATCH] round point before discretisation --- gprMax/cmds_geometry/edge.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gprMax/cmds_geometry/edge.py b/gprMax/cmds_geometry/edge.py index 52c3b19b..70920e60 100644 --- a/gprMax/cmds_geometry/edge.py +++ b/gprMax/cmds_geometry/edge.py @@ -68,14 +68,14 @@ class Edge(UserObjectGeometry): if 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__()) xs, ys, zs = p1 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) if not material: