Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Elements
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Elements/PCGSurfaceSampler.h |
| Include | #include "Elements/PCGSurfaceSampler.h" |
Syntax
struct FSurfaceSamplerData
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNeedsLocalTransformation | Whether the pre-projected points need a local->world transformation. | |
| int32 | CellCount | ||
| int32 | CellMaxX | ||
| int32 | CellMaxY | ||
| int32 | CellMinX | ||
| int32 | CellMinY | ||
| FVector | CellSize | ||
| FVector | InnerCellSize | ||
| FVector | InterstitialDistance | Computed values | |
| FSurfaceSamplerParams | Params | ||
| FVector::FReal | PreProjectionDisplacement | The displacement of the pre-projected, pre-sampled points. | |
| FMatrix | PreProjectionTransform | Will be applied to pre-sampled points to transform them onto the pre-projection plane. | |
| float | Ratio | ||
| int | Seed |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FIntVector2 | ComputeCellIndices
(
int32 Index |
||
| bool | Initialize
(
const FPCGContext* Context, |
||
| bool | Initialize
(
const UPCGSurfaceSamplerSettings* Settings, |