M_Rhino_Geometry_Mesh_NormalAt_1 - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh.NormalAt 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) Version: Rhino 6.0

Syntax

C#

public Vector3d NormalAt(
	int faceIndex,
	double t0,
	double t1,
	double t2,
	double t3
)

VB

Public Function NormalAt ( 
	faceIndex As Integer,
	t0 As Double,
	t1 As Double,
	t2 As Double,
	t3 As Double
) As Vector3d

Parameters

 

faceIndex
Type: System.Int32
Index of triangle or quad to evaluate.
t0
Type: System.Double
First barycentric coordinate.
t1
Type: System.Double
Second barycentric coordinate.
t2
Type: System.Double
Third barycentric coordinate.
t3
Type: System.Double
Fourth barycentric coordinate. If the face is a triangle, this coordinate will be ignored.

Return Value

Type: Vector3d
A Normal vector to the mesh or Vector3d.Unset if the faceIndex is not valid or if the barycentric coordinates could not be evaluated.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
NormalAt Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️