Click or drag to resize

TextureMappingEvaluate Method (Point3d, Vector3d, Point3d)

Evaluate the mapping to get a texture coordinate

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.17
public int Evaluate(
	Point3d p,
	Vector3d n,
	out Point3d t


Type: Rhino.GeometryPoint3d
Vertex location
Type: Rhino.GeometryVector3d
If the mapping projection is ray_projection, then this is the vertex unit normal. Otherwise n is ignored.
Type: Rhino.GeometryPoint3d
Texture coordinate (u,v,w)

Return Value

Type: Int32
Nonzero if evaluation is successful. When the mapping is a box or capped cylinder mapping, the value indicates which side was evaluated. Cylinder mapping: 1 = cylinder wall, 2 = bottom cap, 3 = top cap Box mapping: 1 = front, 2 = right, 3 = back, 4 = left, 5 = bottom, 6 = top
See Also