Click or drag to resize

MeshColorAt Method (Int32, Double, Double, Double, Double)

Evaluate a mesh normal at a set of barycentric coordinates. Barycentric coordinates must be assigned in accordance with the rules as defined by MeshPoint.T.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public Color ColorAt(
	int faceIndex,
	double t0,
	double t1,
	double t2,
	double t3


Type: SystemInt32
Index of triangle or quad to evaluate.
Type: SystemDouble
First barycentric coordinate.
Type: SystemDouble
Second barycentric coordinate.
Type: SystemDouble
Third barycentric coordinate.
Type: SystemDouble
Fourth barycentric coordinate. If the face is a triangle, this coordinate will be ignored.

Return Value

Type: Color
The interpolated vertex color on the mesh or Color.Transparent if the faceIndex is not valid, if the barycentric coordinates could not be evaluated, or if there are no colors defined on the mesh.
Coordinate 0,0,0,0 is not a valid set of barycentric coordinates. The sum of t0 to t3 should be 1.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.27
See Also