Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image > API/Runtime/GeometryCore/Image/FImageOccupancyMap
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageOccupancyMap.h |
| Include | #include "Image/ImageOccupancyMap.h" |
template<typename MeshType, typename GetTriangleIDFuncType>
bool ComputeFromUVSpaceMesh
&40;
const MeshType & UVSpaceMesh,
GetTriangleIDFuncType GetTriangleIDFunc,
const TArray< int32 > &42; UVSpaceMeshTriCharts
&41;
Remarks
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)
Parameters
| Name | Description |
|---|---|
| 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 |