differt.geometry module#
Geometries for building scenes.
Classes
|
A convenient wrapper class around path vertices and object indices. |
|
Paths method generated with shooting-and-bouncing method. |
|
A simple geometry made of triangles. |
Transformations
Utilities to transform 3D coordinates.
|
Return a rotation matrix to rotate coordinates along a given axis. |
|
Return a rotation matrix to rotate coordinates along x axis. |
|
Return a rotation matrix to rotate coordinates along y axis. |
|
Return a rotation matrix to rotate coordinates along z axis. |
Transform Cartesian coordinates to spherical coordinates. |
|
Transform spherical coordinates to Cartesian coordinates. |
Misc
Miscellaneous utilities.
|
Assemble paths vertices by concatenating start-, intermediate, and end-vertices. |
|
Return a lattice of vertices on the unit sphere. |
|
Merge two arrays of cell indices as returned by |
|
Compute the minimal (Euclidean) distance between vertices in different cells. |
|
Normalize vectors and also return their length. |
Generate a vector perpendicular to the input vectors. |
|
Generate |
|
|
Compute the path length of each path. |
Return whether each triangle contains the corresponding vertex, but assuming the vertex lies in the same plane as the triangle. |
|
|
Compute the viewing frustum as seen by one viewer. |