resqpy.grid_surface.grid_surface_cuda.project_polygons_to_surfaces
- resqpy.grid_surface.grid_surface_cuda.project_polygons_to_surfaces(faces: DeviceNDArray, triangles: DeviceNDArray, axis: int, index1: int, index2: int, colx: int, coly: int, nx: int, ny: int, nz: int, dx: float, dy: float, dz: float, l_tol: float, t_tol: float, return_normal_vectors: bool, normals: DeviceNDArray, return_depths: bool, depths: DeviceNDArray, return_offsets: bool, offsets: DeviceNDArray, return_triangles: bool, triangle_per_face: DeviceNDArray)[source]
Maps the projection of a 3D polygon to 2D grid surfaces along a given axis, using GPUs.
- Parameters:
faces (
DeviceNDArray.bool) – boolean array of each cell face that can represent the surface. nb. ordered k,j,i and sized (k,j,i)[axis] -= 1triangles (
DeviceNDArray.float) – ntriangles x naxis array containing (x,y,z) coordinates of each traingle.n_axis (
int) – number of cells in the axis.axis (
int) – axis number. Axis i is 0, j is 1, and k is 2.index1 (
int) – the first index. Axis i is 0, j is 0, and k is 1.index2 (
int) – the second index. Axis i is 1, j is 2, and k is 2.nx (
int) – number of points in x axis.ny (
int) – number of points in y axis.dx (
float) – cell’s thickness along x-axis.dy (
float) – cell’s thickness along y-axis.dz (
float) – cell’s thickness along z-axis.l_tol (
float, default0.0) – a fraction of the line length to allow for an intersection to be found just outside the segment.t_tol (
float, default0.0) – a fraction of the triangle size to allow for an intersection to be found just outside the triangle.
- Returns:
void – modified faces array (INTENT OUT).