Es.InkPainter.MeshOperator Class Reference

A class that manipulates Mesh. More...

Public Member Functions

 MeshOperator (Mesh mesh)
 
bool LocalPointToUV (Vector3 localPoint, Matrix4x4 matrixMVP, out Vector2 uv)
 Convert local-space point to texture coordinates. More...
 
Vector3 NearestLocalSurfacePoint (Vector3 localPoint)
 Returns the point on the surface of Mesh closest to the point on the specified local-space. More...
 

Detailed Description

A class that manipulates Mesh.

Member Function Documentation

◆ LocalPointToUV()

bool Es.InkPainter.MeshOperator.LocalPointToUV ( Vector3  localPoint,
Matrix4x4  matrixMVP,
out Vector2  uv 
)

Convert local-space point to texture coordinates.

Parameters
localPointLocal-Space Point
matrixMVPWorld-View-Projection Transformation matrix.
uvUV coordinates after conversion.
Returns
Whether the conversion was successful.

◆ NearestLocalSurfacePoint()

Vector3 Es.InkPainter.MeshOperator.NearestLocalSurfacePoint ( Vector3  localPoint)

Returns the point on the surface of Mesh closest to the point on the specified local-space.

Parameters
localPointThe point of local-space.
Returns
Mesh The point of local-space on the surface.

The documentation for this class was generated from the following file: