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