TextureMappingEvaluate Method (Point3d, Vector3d, Point3d) |
Evaluate the mapping to get a texture coordinate
Namespace:
Rhino.Render
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.17
Syntax public int Evaluate(
Point3d p,
Vector3d n,
out Point3d t
)
Public Function Evaluate (
p As Point3d,
n As Vector3d,
<OutAttribute> ByRef t As Point3d
) As Integer
Parameters
- p
- Type: Rhino.GeometryPoint3d
Vertex location - n
- Type: Rhino.GeometryVector3d
If the mapping projection is ray_projection, then this
is the vertex unit normal. Otherwise n is ignored. - t
- 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