unreal.TransferVertexColorMethod

class unreal.TransferVertexColorMethod

Bases: EnumBase

ETransfer Vertex Color Method

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: MeshVertexColorFunctions.h

CLOSEST_POINT_ON_SURFACE: TransferVertexColorMethod = Ellipsis

For every vertex on the TargetMesh, find the closest point on the surface of the SourceMesh and transfer colors from it. This is usually a point on the SourceMesh triangle where the colors are computed via interpolation of the colors at the vertices of the triangle via barycentric coordinates.

Type:

0

INPAINT: TransferVertexColorMethod = Ellipsis

For every vertex on the target mesh, find the closest point on the surface of the source mesh. If that point is within the search radius (controlled via SearchPercentage), and their normals differ by less than the NormalThreshold, then we directly copy the colors from the source point to the target mesh vertex (same as the ClosestPointOnSurface method). For all the vertices we didn’t copy the colors directly, automatically compute the smooth colors.

Type:

1