From 2f911d2d11179cc28b528d3fed432291d130057f Mon Sep 17 00:00:00 2001 From: jasminium Date: Tue, 5 Jan 2021 11:52:35 +0100 Subject: [PATCH] round fractal box points for discretisation --- gprMax/cmds_geometry/fractal_box.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gprMax/cmds_geometry/fractal_box.py b/gprMax/cmds_geometry/fractal_box.py index e08b0656..a067c4f6 100644 --- a/gprMax/cmds_geometry/fractal_box.py +++ b/gprMax/cmds_geometry/fractal_box.py @@ -99,13 +99,13 @@ class FractalBox(UserObjectGeometry): # if they havent specfied - go with the grid default averagefractalbox = False + 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) - if frac_dim < 0: logger.exception(self.__str__() + ' requires a positive value for the fractal dimension') raise ValueError