cigvis.meshs.well_logs module#
To merge all curves into one Mesh, To merge all trajectory into one Mesh.
- cigvis.meshs.well_logs.curves_mesh(points, radius, tube_points, vidx, traj_vertices, normals=None, binormals=None)#
make curves as faces, return vertices and faces
Parameters#
- pointsarray-like
trajectory points, shape is like (N, 3)
- radiusarray-like
shape is like (m, N, 3)
- tube_pointsint
tube points
- vidxarray-like
len(vidx) == m
- traj_verticesarray-like
vertices of the trajectory mesh, shape is like (N*tube_points, 3)
- cigvis.meshs.well_logs.rotate(angle, axis, dtype=None)#
This function is from vispy.utils.transforms
The 4x4 rotation matrix for rotation about a vector.
Parameters#
- anglefloat
The angle of rotation, in degrees.
- axisndarray
The x, y, z coordinates of the axis direction vector.
Returns#
- Mndarray
Transformation matrix describing the rotation.