MeshColorAt Method (MeshPoint) |
Evaluate a mesh color at a set of barycentric coordinates.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public Color ColorAt(
MeshPoint meshPoint
)
Public Function ColorAt (
meshPoint As MeshPoint
) As Color
Parameters
- meshPoint
- Type: Rhino.GeometryMeshPoint
MeshPoint instance containing a valid Face Index and Barycentric coordinates.
Return Value
Type:
ColorThe 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.
See Also