Navigation
API > API/Plugins > API/Plugins/HairStrandsCore
Source data for building root bulk data
| Name | FHairStrandsRootData |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/HairStrands/Source/HairStrandsCore/Public/HairStrandsDatas.h |
| Include Path | #include "HairStrandsDatas.h" |
Syntax
struct FHairStrandsRootData
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers | |
|---|---|---|---|---|---|
| LODIndex | int32 | Mesh LOD index for which the root data are computed | HairStrandsDatas.h | ||
| MeshInterpolationWeightsBuffer | TArray< FHairStrandsWeightFormat::Type > | Store the hair interpolation weights | Size = SamplesCount * SamplesCount | HairStrandsDatas.h | |
| MeshSampleIndicesBuffer | TArray< uint32 > | Store the samples vertex indices | HairStrandsDatas.h | ||
| MeshSampleSectionsBuffer | TArray< uint32 > | Store the samples rest section | HairStrandsDatas.h | ||
| MeshSectionCount | uint32 | Number of render section of the target mesh | HairStrandsDatas.h | ||
| PointCount | uint32 | Number of control points | HairStrandsDatas.h | ||
| RestSamplePositionsBuffer | TArray< FHairStrandsMeshTrianglePositionFormat::Type > | Store the samples rest positions | HairStrandsDatas.h | ||
| RestUniqueTrianglePositionBuffer | TArray< FHairStrandsMeshTrianglePositionFormat::Type > | HairStrandsDatas.h | |||
| RestUniqueTrianglePositionBuffer_TargetNonTransfered | TArray< FHairStrandsMeshTrianglePositionFormat::Type > | Optional: Unique triangle positions before transfer. | HairStrandsDatas.h | ||
| RootBarycentricBuffer | TArray< FHairStrandsRootBarycentricFormat::Type > | HairStrandsDatas.h | |||
| RootCount | uint32 | Number of roots | HairStrandsDatas.h | ||
| RootToUniqueTriangleIndexBuffer | TArray< FHairStrandsRootToUniqueTriangleIndexFormat::Type > | Triangle on which a root is attached When the projection is done with source to target mesh transfer, the projection indices does not match. | HairStrandsDatas.h | ||
| SampleCount | uint32 | Number of samples used for the mesh interpolation | HairStrandsDatas.h | ||
| UniqueSectionIds | TArray< uint32 > | Store the mesh section indices which are relevant for this root LOD data | HairStrandsDatas.h | ||
| UniqueTriangleIndexBuffer | TArray< FHairStrandsUniqueTriangleIndexFormat::Type > | Strand hair roots translation and rotation in rest position relative to the bound triangle. | HairStrandsDatas.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool HasProjectionData() |
HairStrandsDatas.h | ||
bool IsValid() |
HairStrandsDatas.h | ||
void Reset() |
HairStrandsDatas.h |