Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FImageOccupancyMap
Description
Computes the image occupancy map from a UV space mesh. This function classifies all the samples in the image, and computes the GutterTexels mapping, if you dont want the mapping you can call ClassifySamplesFromUVSpaceMesh and compute it yourself (eg for texture baking we use filter kernel coverage to compute the GutterTexels mapping)
| Name | ComputeFromUVSpaceMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageOccupancyMap.h |
| Include Path | #include "Image/ImageOccupancyMap.h" |
template<typename MeshType, typename GetTriangleIDFuncType>
bool ComputeFromUVSpaceMesh
(
const MeshType & UVSpaceMesh,
GetTriangleIDFuncType GetTriangleIDFunc,
const TArray < int32 > * UVSpaceMeshTriCharts
)
Parameters
| Name | Remarks |
|---|---|
| UVSpaceMesh | UV space mesh to compute the occupancy map from. |
| GetTriangleIDFunc | Lambda to remap a texel's nearest triangle ID |
| UVSpaceMeshTriCharts | Optional UVSpaceMesh triangle ID to UV chart map |