resqpy.surface.CombinedSurface

class resqpy.surface.CombinedSurface(surface_list, crs_uuid=None)

Bases: object

Class allowing a collection of Surface objects to be treated as a single surface.

Not a RESQML class in its own right.

Methods:

__init__(surface_list[, crs_uuid])

Initialise a CombinedSurface object from a list of Surface (and/or CombinedSurface) objects.

surface_index_for_triangle_index(tri_index)

Return the index of the surface containing the triangle and local triangle index.

triangles_and_points()

Returns the composite triangles and points for the combined surface.


__init__(surface_list, crs_uuid=None)[source]

Initialise a CombinedSurface object from a list of Surface (and/or CombinedSurface) objects.

Parameters
  • surface_list (list of Surface and/or CombinedSurface objects) – the new object is the combination of these surfaces

  • crs_uuid (uuid.UUID, optional) – if present, all contributing surfaces must refer to this crs

Note

all contributing surfaces should be established before initialising this object; all contributing surfaces must refer to the same crs; this class of object is not part of the RESQML standard and cannot be saved in a RESQML dataset - it is a high level derived object class

surface_index_for_triangle_index(tri_index)[source]

Return the index of the surface containing the triangle and local triangle index.

Parameters

tri_index – triangle index in the combined surface

triangles_and_points()[source]

Returns the composite triangles and points for the combined surface.