Tres::Triangle
Inherits Reference < Object
Constructors
Class methods
barycoord_from_point(point, a, b, c, target = Tres::Vector3.new)
static/instance method to calculate barycoordinates based on: http://www.blackpawn.com/texts/pointinpoly/default.html
contains_point?(point, a, b, c)
Sourcenormal(a, b, c, target = Tres::Vector3.new)
SourceInstance methods
a=(a : Tres::Vector3)
Sourcearea
Sourceb=(b : Tres::Vector3)
Sourcebarycoord_from_point(point, target = Tres::Vector3.new)
Sourcec=(c : Tres::Vector3)
Sourceclone
Sourcecontains_point?(point)
Sourcecopy(triangle)
Sourceequals(triangle)
Sourcemidpoint(target = Tres::Vector3.new)
Sourcenormal(target = Tres::Vector3.new)
Sourceplane(target = Tres::Plane.new)
Sourceset(a, b, c)
Sourceset_from_points_and_indices(points, i0, i1, i2)
Source