LineSet

class subsurface.structs.unstructured_elements.LineSet(data: subsurface.structs.base_structures.unstructured_data.UnstructuredData, radius: float = 1)[source]

Bases: object

PointSet with line cells.

This dataset defines cell connectivity between points to create line segments.

Parameters
  • data (UnstructuredData) –

    Base object for unstructured data.

    data.cells represent the indices of the end points for each line segment in the mesh. Each column corresponds to a line segment. If not specified, the vertices are connected in order, equivalent to segments=[[0, 1], [1, 2], [2, 3], ...]

  • radius (float) – Thickness of the line set

Attributes Summary

n_segments

segments

Methods Summary

generate_default_cells()

Method to generate cells based on the order of the vertex.

Attributes Documentation

n_segments
segments

Methods Documentation

generate_default_cells()[source]

Method to generate cells based on the order of the vertex. This only works if the LineSet only represents one single line

Returns

np.ndarray[(Any, 2), IntX]