ugrid

UGrid

class vedo.ugrid.UGrid(inputobj=None)[source]

Bases: vtkRenderingCorePython.vtkActor, vedo.base.BaseGrid

Support for UnstructuredGrid objects.

alpha(opacity=None)[source]

Set/get mesh’s transparency. Same as mesh.opacity().

clone()[source]

Clone the UGrid object to yield an exact copy.

color(c=False)[source]

Set/get UGrid color. If None is passed as input, will use colors from active scalars. Same as ugrid.c().

extractCellType(ctype)[source]

Extract a specific cell type and return a new UGrid.

lc(lineColor=None)[source]

Set/get color of mesh edges. Same as lineColor().

lineColor(lc=None)[source]

Set/get color of mesh edges. Same as lc().

lineWidth(lw=None)[source]

Set/get width of mesh edges. Same as lw().

lw(lineWidth=None)[source]

Set/get width of mesh edges. Same as lineWidth().

opacity(alpha=None)[source]

Set/get mesh’s transparency. Same as mesh.alpha().

wireframe(value=True)[source]

Set mesh’s representation as wireframe or solid surface. Same as mesh.wireframe().