cigvis.vispynodes.meshnode module#
Based on the Mesh of vispy, we create a new class to maintenance the instance of surface, instead of the general Mesh class
- class cigvis.vispynodes.meshnode.ArbLineNode(path=None, anchor=None, data=None, volume=None, cmap='gray', clim=None, hstep=1, vstep=1, **kwargs)#
Bases:
Mesh- preprocess(path=None, anchor=None, data=None, volume=None)#
- class cigvis.vispynodes.meshnode.SurfaceNode(surf, volume=None, values='depth', clims: List = None, cmaps='jet', shape: Tuple = None, step1: int = 2, step2: int = 2, offset: List = [0, 0, 0], interval: List = [1, 1, 1], interp: bool = True, quad: bool = False, quad_size=1.0, anti_rot: bool = True, shading: str = 'smooth', dyn_light: bool = True, **kwargs)#
Bases:
Mesh- property clims#
- property cmaps#
- interp_quad_value()#
- interp_value()#
- property interval#
- property offset#
- process_quad_values()#
- process_values()#
- to_meshs(method='cubic', fill=-1)#
surf: shape as (n1, n2), or (N, 3)
- update_colors_by_slice_node(nodes, volumes)#
- update_offset_and_interval(offset, interval)#