#include <CesiumPrimitiveFeatures.h>
Definition at line 72 of file CesiumPrimitiveFeatures.h.
◆ GetFeatureIDFromFace()
static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromFace |
( |
UPARAM(ref) const FCesiumPrimitiveFeatures & | PrimitiveFeatures, |
|
|
int64 | FaceIndex, |
|
|
int64 | FeatureIDSetIndex = 0 ) |
|
static |
Gets the feature ID associated with the given face.
- Parameters
-
PrimitiveFeatures | The primitive. |
FaceIndex | The index of the face to obtain the feature ID of. |
FeatureIDSetIndex | A primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index. This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1. |
◆ GetFeatureIDFromHit()
static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromHit |
( |
UPARAM(ref) const FCesiumPrimitiveFeatures & | PrimitiveFeatures, |
|
|
const FHitResult & | Hit, |
|
|
int64 | FeatureIDSetIndex = 0 ) |
|
static |
Gets the feature ID from the given line trace hit, assuming it has hit a glTF primitive component containing this CesiumPrimitiveFeatures.
- Parameters
-
PrimitiveFeatures | The primitive. |
Hit | The line trace hit to try to obtain a feature ID from. |
FeatureIDSetIndex | A primitive may have multiple feature ID sets, so this allows a feature ID set to be specified by index. This value should index into the array of CesiumFeatureIdSets in the CesiumPrimitiveFeatures. If the specified feature ID set index is invalid, this returns -1. |
◆ GetFeatureIDFromInstance()
static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFeatureIDFromInstance |
( |
UPARAM(ref) const FCesiumPrimitiveFeatures & | InstanceFeatures, |
|
|
int64 | InstanceIndex, |
|
|
int64 | FeatureIDSetIndex = 0 ) |
|
static |
Gets the feature ID associated with the instance at the given index.
◆ GetFeatureIDSets()
Gets all the feature ID sets that are associated with the primitive.
- Parameters
-
PrimitiveFeatures | The primitive. |
◆ GetFeatureIDSetsOfType()
Gets all the feature ID sets of the given type.
- Parameters
-
PrimitiveFeatures | The primitive. |
Type | The type of feature ID set to obtain. If the primitive has no sets of that type, the returned array will be empty. |
◆ GetFirstVertexFromFace()
static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetFirstVertexFromFace |
( |
UPARAM(ref) const FCesiumPrimitiveFeatures & | PrimitiveFeatures, |
|
|
int64 | FaceIndex ) |
|
static |
Gets the index of the first vertex that makes up a given face of this primitive.
- Parameters
-
PrimitiveFeatures | The primitive. |
FaceIndex | The index of the face. |
◆ GetPrimitiveFeatures()
static const FCesiumPrimitiveFeatures & UCesiumPrimitiveFeaturesBlueprintLibrary::GetPrimitiveFeatures |
( |
const UPrimitiveComponent * | component | ) |
|
|
static |
Gets the primitive features of a glTF primitive component.
If component
is not a Cesium glTF primitive component, the returned features are empty.
- Parameters
-
component | The component to get the features of. |
◆ GetVertexCount()
static int64 UCesiumPrimitiveFeaturesBlueprintLibrary::GetVertexCount |
( |
UPARAM(ref) const FCesiumPrimitiveFeatures & | PrimitiveFeatures | ) |
|
|
static |
Get the number of vertices in the primitive.
- Parameters
-
PrimitiveFeatures | The primitive. |
The documentation for this class was generated from the following file: