openalea.ratp.interface.geometry#

Functions

cartesian(theta, phi)

cartesian coordinates of a unit vector with inclination theta and azimuth phi

centroid(face, vertices)

equilateral([area])

2d coordinates of an equilateral triangle centered on origin

move_points(xy_points[, position, ...])

Move 2d xy points arround origin at 3D position with orientation

norm(vector)

normal(face, vertices)

normed(vector)

normalised coordinates of (0,point) vector

random_normals([size])

rotate(points, rotation_mat)

rotation_matrix(axis, theta)

Return the rotation matrix associated with counterclockwise rotation arround the given axis by theta radians.

spherical(vector)

inclination (theta) and azimuth (phi) spherical angles

surface(face, vertices)

unit_square_mesh()

A 2 triangle mesh representing ground unit area