Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Image/ImageOccupancyMap.h |
Include |
#include "Image/ImageOccupancyMap.h" |
class FImageOccupancyMap
ImageOccupancyMap calculates and stores coverage information for a 2D image/texture, for example coverage derived from UV islands of a mesh, 2D polygons, etc.
An optional set of gutter texels can be calculated, and correspondence between gutter texels and the nearest interior texel is stored.
In addition, a 2D coordinate (eg UV) and integer ID (eg Triangle ID) of each texel can be calculated/stored. This is not just a cache. For 'border' texels where the texel center is technically outside the mesh/polygon, but the texel rectangle may still overlap the shape, the nearest UV/Triangle is stored. This simplifies computing samples around the borders such that the shape is covered under linear interpolatione/etc.
Name | Description | ||
---|---|---|---|
|
Dimensions |
Image Dimensions |
|
|
const int8 |
EmptyTexel |
Texel types |
|
GutterSize |
Width of the gutter. |
|
|
const int8 |
GutterTexel |
Const int8 BorderTexel = 2; |
|
TArray64< TTupl... |
GutterTexels |
Set of Gutter Texels. |
|
const int8 |
InteriorTexel |
|
|
TArray64< int32... |
TexelQueryTriangle |
Integer/Triangle ID for each texel in image. Only set for Interior texels. |
|
TArray64< FVect... |
TexelQueryUV |
UV for each texel in image. Only set for Interior texels |
|
TArray64< int8 ... |
TexelType |
Texel Type for each texel in image, Size = Width x Height |
Name | Description | ||
---|---|---|---|
|
ComputeFromUVSpaceMesh ( |
Void SetTexelType(int64 X, int64 Y, int8 Type) |
|
|
Initialize ( |
||
|
IsInterior ( |
||
|
ParallelProcessingPass ( |