vispy.geometry.generation.
create_arrow
Create a 3D arrow using a cylinder plus cone
Number of rows.
Number of columns.
Base cylinder radius.
Length of the arrow.
If None, then this defaults to 2x the cylinder radius.
If None, then this defaults to 1/3 of the arrow length.
Vertices and faces computed for a cone surface.
create_box
Generate vertices & indices for a filled and outlined box.
Box width.
Box height.
Box depth.
Box segments count along the width.
Box segments count along the height.
Box segments count along the depth.
Any combination of {'-x', '+x', '-y', '+y', '-z', '+z'} Included planes in the box construction.
{'-x', '+x', '-y', '+y', '-z', '+z'}
Array of vertices suitable for use as a VertexBuffer.
Indices to use to produce a filled box.
Indices to use to produce an outline of the box.
create_cone
Create a cone
Number of faces.
Base cone radius.
Length of the cone.
create_cube
Generate vertices & indices for a filled and outlined cube
Indices to use to produce a filled cube.
Indices to use to produce an outline of the cube.
create_cylinder
Create a cylinder
Cylinder radii.
Length of the cylinder.
Rotate each row by half a column.
Vertices and faces computed for a cylindrical surface.
create_grid_mesh
Generate vertices and indices for an implicitly connected mesh.
The intention is that this makes it simple to generate a mesh from meshgrid data.
A 2d array of x coordinates for the vertices of the mesh. Must have the same dimensions as ys and zs.
A 2d array of y coordinates for the vertices of the mesh. Must have the same dimensions as xs and zs.
A 2d array of z coordinates for the vertices of the mesh. Must have the same dimensions as xs and ys.
The array of vertices in the mesh.
The array of indices for the mesh.
create_plane
Generate vertices & indices for a filled and outlined plane.
Plane width.
Plane height.
Plane segments count along the width.
Plane segments count along the height.
{'-x', '+x', '-y', '+y', '-z', '+z'} Direction the plane will be facing.
Indices to use to produce a filled plane.
Indices to use to produce an outline of the plane.
References
Cabello, R. (n.d.). PlaneBufferGeometry.js. Retrieved May 12, 2015, from http://git.io/vU1Fh
create_sphere
Create a sphere
Number of rows (for method=’latitude’ and ‘cube’).
Number of columns (for method=’latitude’ and ‘cube’).
Number of depth segments (for method=’cube’).
Sphere radius.
Rotate each row by half a column (for method=’latitude’).
Number of subdivisions to perform (for method=’ico’)
Method for generating sphere. Accepts ‘latitude’ for latitude- longitude, ‘ico’ for icosahedron, and ‘cube’ for cube based tessellation.
Vertices and faces computed for a spherical surface.