geovista.filters#

Filters to analyse, transform and process geolocated meshes.

These filters leverage and build upon the rich, powerful ecosystem of the Visualization Toolkit (VTK).

Notes#

Added in version 0.1.0.

Module Contents#

Functions#

remesh(mesh,Ā meridian[,Ā boundary,Ā check,Ā rtol,Ā atol])

Slice mesh along meridian and triangulate any sliced cells.

Attributes#

REMESH_SEAM_EAST

Marker for remesh filter eastern cell boundary point.

VTK_BAD_TRIANGLE_MASK

vtkIntersectionPolyDataFilter bad triangle cell array name.

VTK_BOUNDARY_MASK

vtkIntersectionPolyDataFilter intersection point array name.

VTK_FREE_EDGE_MASK

vtkIntersectionPolyDataFilter free edge cell array name.

geovista.filters.remesh(mesh, meridian, boundary=False, check=False, rtol=None, atol=None)[source]#

Slice mesh along meridian and triangulate any sliced cells.

See the vtkIntersectionPolyDataFilter documentation for more.

Parameters:
meshPolyData

The surface to be remeshed.

meridianfloat

The meridian along which to remesh, in degrees longitude.

boundarybool, default=False

Whether to attach the remeshed boundary points mask to the resultant mesh.

checkbool, default=False

Whether to check the remeshed surface for bad cells and free edges.

rtolfloat, optional

The relative tolerance for longitudes close to the ā€˜wrap meridianā€™ - see geovista.common.wrap() for more.

atolfloat, optional

The absolute tolerance for longitudes close to the ā€˜wrap meridianā€™ - see geovista.common.wrap() for more.

Returns:
tuple of PolyData

The remeshed surface, the remeshed surface left/west of the slice, and the remeshed surface right/east of the slice.

Notes

Added in version 0.1.0.

geovista.filters.REMESH_SEAM_EAST: int#

Marker for remesh filter eastern cell boundary point.

geovista.filters.VTK_BAD_TRIANGLE_MASK: str = 'BadTriangle'#

vtkIntersectionPolyDataFilter bad triangle cell array name.

geovista.filters.VTK_BOUNDARY_MASK: str = 'BoundaryPoints'#

vtkIntersectionPolyDataFilter intersection point array name.

geovista.filters.VTK_FREE_EDGE_MASK: str = 'FreeEdge'#

vtkIntersectionPolyDataFilter free edge cell array name.