cigvis.vispynodes.well_log module#
This file is modified from vispy’s TubeVisual
Create a tube like well log
- class cigvis.vispynodes.well_log.WellLog(points, radius, colors, index=None, tube_points=16, mode='triangles', cmap=None, clim=None, shading='smooth', dyn_light=True)#
Bases:
CompoundWell log Mesh, the trajectory of the well log is shown as a tube (with radius). The first curve is shown as the color of the tube, and the other curves are shown as faces attach to the tube
Parameters#
- pointsarray-like
the trajectory of the well log, shape is like (N, 3)
- radiusint or List
radius of the tube and the curves width
- colorsarray-like
shape is like (N, 4) (one curve, colors for the tube), or (m, N, 4) (m curves)
- indexList
points index of each curve attached to
- tube_pointsint
the number of points to represent a circle
- modestr
default is ‘triangles’
- property clim#
- property cmap#
- cigvis.vispynodes.well_log.make_triangle_line(points, radius, tube_points, vidx, vertices, normals=None, binormals=None)#
make triangle curve, return vertices and faces
- cigvis.vispynodes.well_log.make_triangle_tube(points: ndarray, radius, tube_points: int, normals=None, binormals=None)#
make triangle tube, return vertices and faces