Skip to content

Commit

Permalink
Merge pull request #863 from bp/expose_reorient_arg
Browse files Browse the repository at this point in the history
Update grid_surface_mp.py to expose reorient argument
  • Loading branch information
andy-beer authored Dec 11, 2024
2 parents 9a99e76 + e35c4b8 commit 2c448c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resqpy/multi_processing/wrappers/grid_surface_mp.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def find_faces_to_represent_surface_regular_wrapper(index: int,
raw_bisector: bool = False,
use_pack: bool = False,
flange_radius = None,
reorient = True,
n_threads = 20) -> Tuple[int, bool, str, List[Union[UUID, str]]]:
"""Multiprocessing wrapper function of find_faces_to_represent_surface_regular_optimised.
Expand Down Expand Up @@ -96,6 +97,8 @@ def find_faces_to_represent_surface_regular_wrapper(index: int,
packed format, which will only be readable by resqpy based applications
flange_radius (float, optional): the radial distance to use for outer flange extension points; if None,
a large value will be calculated from the grid size; units are xy units of grid crs
reorient (bool, default True): if True, the points are reoriented to minimise the
z range prior to retriangulation (ie. z axis is approximate normal to plane of points), to enhace the triangulation
n_threads (int, default 20): the number of parallel threads to use in numba points in triangles function
returns:
Expand Down Expand Up @@ -176,7 +179,7 @@ def find_faces_to_represent_surface_regular_wrapper(index: int,
surf = rqs.Surface(model, crs_uuid = grid.crs.uuid, title = surf_title)
flange_bool = surf.set_from_point_set(pset,
convexity_parameter = 2.0,
reorient = True,
reorient = reorient,
extend_with_flange = extend_fault_representation,
flange_inner_ring = flange_inner_ring,
saucer_parameter = saucer_parameter,
Expand Down

0 comments on commit 2c448c5

Please sign in to comment.