Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling
Inheritance Hierarchy
- FMeshBaseBaker
- FMeshMapBaker
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshMapBaker.h |
| Include | #include "Sampling/MeshMapBaker.h" |
Syntax
class FMeshMapBaker : public UE::Geometry::FMeshBaseBaker
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TArray< int32 > > | BakeAccumulateLists | Lists of Bake indices for each accumulation mode. | |
| FBakeAnalytics | BakeAnalytics | ||
| TArray< FMeshMapEvaluator::FEvaluationContext > | BakeContexts | Evaluation contexts for each mesh evaluator. | |
| TArray< FVector4f > | BakeDefaultColors | ||
| TArray< float > | BakeDefaults | Array of default values/colors per BakeResult. | |
| TArray< int32 > | BakeOffsets | Offsets per Baker into the BakeResults array. | |
| TArray< TUniquePtr< TImageBuilder< FVector4f > > > | BakeResults | Array of bake result images. | |
| TArray< TSharedPtr< FMeshMapEvaluator, ESPMode::ThreadSafe > > | Bakers | The list of evaluators to process. | |
| int32 | BakeSampleBufferSize | The total size of the temporary float buffer for BakeSample. | |
| TArray< int32 > | BakeSampleOffsets | Offsets per BakeResult into the BakeSample buffer. | |
| bool | bGutterEnabled | If true, the baker will pad the baked content past the UV borders by GutterSize. | |
| const bool | bParallel | ||
| TFunction< bool(void)> | CancelF | ||
| FImageDimensions | Dimensions | ||
| int32 | FilterKernelSize | The pixel distance around the sample texel to be considered by the filter. [0, TilePadding] | |
| EBakeFilterType | FilterType | The texture filter type. | |
| FDynamicMesh3 | FlatMesh | ||
| int32 | GutterSize | The pixel distance (in texel diagonal length) to pad baked content past the UV borders. | |
| TFunction< void(bool, const FMeshMapEvaluator::FCorrespondenceSample &, const FVector2d &, const FVe... | InteriorSampleCallback | Function to call for each interior sample | |
| IsInFilterRegionFn | IsInFilterRegionEval | ||
| FMeshSurfaceUVSampler | MeshUVSampler | ||
| TFunction< void(TArray< TUniquePtr< TImageBuilder< FVector4f >>> &)> | PostWriteToImageCallback | Function to call after evaluator data is written to the final image, but before any gutter processing occurs | |
| TFunction< float(const FVector2i &, const FVector2d &, int32)> | SampleFilterF | ||
| int32 | SamplesPerPixel | The number of samples to evaluate per pixel. | |
| TArray< int32 > * | TargetMeshUVCharts | Array of TargetMesh triangle ID to UV chart ID mapping. | |
| TArray< int32 > | TargetMeshUVChartsLocal | Local Array of TargetMesh triangle ID to UV chart ID mapping. | |
| TextureFilterFn | TextureFilterEval | ||
| int32 | TilePadding | The amount of padding for tiled processing of the output image(s). | |
| int32 | TileSize | The square dimensions for tiled processing of the output image(s). |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddEvaluator
(
const TSharedPtr< FMeshMapEvaluator, ESPMode::ThreadSafe >& Eval |
Add a baker to be processed. | |
| void | Bake () |
BakeProcess all bakers to generate image results for each. | |
| void | BakeSample
(
FMeshMapTileBuffer& TileBuffer, |
Evaluate this sample. | |
| void | ComputeUVCharts
(
const FDynamicMesh3& Mesh, |
Computes the connected UV triangles and returns an array containing the mapping from triangle ID to unique UV chart ID. | |
| float | EvaluateFilter
(
const FVector2d& Dist |
||
| bool | EvaluateIsInFilterRegion
(
const FVector2d& Dist |
||
| const TArray< int32 > & | |||
| const TArrayView< TUniquePtr< TImageBuilder< FVector4f > > > | GetBakeResults
(
int32 EvalIdx |
||
| FImageDimensions | |||
| FMeshMapEvaluator * | GetEvaluator
(
int32 EvalIdx |
||
| EBakeFilterType | GetFilter () |
||
| bool | |||
| int32 | |||
| int32 | |||
| const TArray< int32 > * | |||
| int32 | GetTileSize () |
||
| void | InitBake () |
Initialize evaluation contexts and precompute data for bake evaluation. | |
| void | Initialize bake sample default floats and colors. | ||
| void | InitFilter () |
Initialize filter | |
| int32 | |||
| void | Reset () |
Reset the list of bakers. | |
| void | SetDimensions
(
FImageDimensions DimensionsIn |
||
| void | SetFilter
(
EBakeFilterType FilterTypeIn |
||
| void | SetGutterEnabled
(
bool bEnabled |
||
| void | SetGutterSize
(
int32 GutterSizeIn |
||
| void | SetSamplesPerPixel
(
int32 SamplesPerPixelIn |
||
| void | SetTargetMeshUVCharts
(
TArray< int32 >* UVChartsIn |
Set an a Triangle ID to UV Chart ID array for TargetMesh. | |
| void | SetTileSize
(
int TileSizeIn |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FBakeAnalytics | Analytics |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EBakeFilterType | Parameters |
Typedefs
| Name | Description |
|---|---|
| IsInFilterRegionFn | |
| TextureFilterFn | Texture filter function |
Constants
| Name | Description |
|---|---|
| BoxFilter | Texture filters |
| BSplineFilter | |
| MitchellNetravaliFilter |