Navigation
API > API/Plugins > API/Plugins/PCGGeometryScriptInterop > API/Plugins/PCGGeometryScriptInterop/Elements
Inheritance Hierarchy
- FPCGContext
- IPCGAsyncLoadingContext
- FPCGLoadObjectsFromPathContext
- FPCGMeshSamplerContext
References
| Module | PCGGeometryScriptInterop |
| Header | /Engine/Plugins/PCGInterops/PCGGeometryScriptInterop/Source/PCGGeometryScriptInterop/Public/Elements/PCGMeshSampler.h |
| Include | #include "Elements/PCGMeshSampler.h" |
Syntax
struct FPCGMeshSamplerContext : public FPCGLoadObjectsFromPathContext
Remarks
Extra context to store all the data that need to be kept between multiple executions (time slicing)
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TArray< UMaterialInterface * > > | AssetMaterialList | ||
| bool | bDataPrepared | Set to true if prepared data succeeded. | |
| TArray< FGeometryScriptColorList > | Colors | ||
| TArray< TArray< UMaterialInterface * > > | ComponentMaterialList | Material Specific. | |
| TArray< TObjectPtr< UDynamicMesh > > | DynamicMeshes | Dynamic meshes. Will be added to root. | |
| TArray< FPCGMetadataAttribute< FSoftObjectPath > * > | MaterialAttributes | ||
| TArray< FPCGMetadataAttribute< int32 > * > | MaterialIdAttributes | ||
| TArray< FGeometryScriptVectorList > | Normals | ||
| TArray< UPCGPointData * > | OutPointData | Output point data. | |
| TArray< FGeometryScriptVectorList > | Positions | Lists extracted from the meshes. | |
| TArray< TFuture< bool > > | SamplingFutures | For Poisson sampling, we are starting futures that are not framebound Store the futures and synchronisation items in the context | |
| TUniquePtr< FProgressCancel > | SamplingProgess | ||
| TArray< int32 > | StartingIndices | Starting indices for each different object to sample. If we have 3 meshes of 20 elements (like vertices) each, the array will be [0, 20, 40, 60]. | |
| std::atomic< bool > | StopSampling | ||
| TArray< FPCGMetadataAttribute< int32 > * > | TriangleIdAttributes | ||
| TArray< FGeometryScriptIndexList > | TriangleIds | ||
| TArray< FPCGMetadataAttribute< FVector2D > * > | UVAttributes | Optional attributes. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | SetPointColorAndDensity
(
SetPointDensityFunc SetPointDensityFuncPtr, |
Overridden from FPCGContext
| Type | Name | Description | |
|---|---|---|---|
| void | AddExtraStructReferencedObjects
(
FReferenceCollector& Collector |
Typedefs
| Name | Description |
|---|---|
| SetPointDensityFunc |