Cesium for Unreal 2.21.0
Loading...
Searching...
No Matches
ICesiumLoadedTilePrimitive Class Referenceabstract

Provides access to the details of a glTF MeshPrimitive loaded by the Cesium3DTileset. More...

#include <CesiumLoadedTile.h>

Public Member Functions

virtual ICesiumLoadedTileGetLoadedTile ()=0
 Gets the loaded tile that this primitive belongs to.
 
virtual UStaticMeshComponent & GetMeshComponent ()=0
 Gets the Unreal static mesh component built to represent the glTF primitive.
 
virtual const FCesiumPrimitiveFeaturesGetPrimitiveFeatures () const =0
 Gets the Blueprint-accessible wrapper for the glTF Primitive's mesh features.
 
virtual const FCesiumPrimitiveMetadataGetPrimitiveMetadata () const =0
 Gets the Blueprint-accessible wrapper for the glTF Primitive's EXT_structural_metadata extension.
 
virtual const CesiumGltf::MeshPrimitiveGetMeshPrimitive () const =0
 Gets the glTF primitive.
 
virtual std::optional< uint32_t > FindTextureCoordinateIndexForGltfAccessor (int32_t AccessorIndex) const =0
 Maps an accessor index in the glTF primitive to its corresponding texture coordinate index in the Unreal mesh.
 

Detailed Description

Provides access to the details of a glTF MeshPrimitive loaded by the Cesium3DTileset.

This interface is implemented by the USceneComponent subclass that represents a single glTF primitive that is part of the tile's glTF model.

Definition at line 75 of file CesiumLoadedTile.h.

Member Function Documentation

◆ FindTextureCoordinateIndexForGltfAccessor()

virtual std::optional< uint32_t > ICesiumLoadedTilePrimitive::FindTextureCoordinateIndexForGltfAccessor ( int32_t AccessorIndex) const
pure virtual

Maps an accessor index in the glTF primitive to its corresponding texture coordinate index in the Unreal mesh.

The -1 key is reserved for implicit feature IDs (in other words, the vertex index).

Parameters
AccessorIndexAn accessor index in the glTF primitive
Returns
A texture coordinate index in the Unreal mesh, or std::nullopt if none was found for the AccessorIndex passed.

◆ GetLoadedTile()

virtual ICesiumLoadedTile & ICesiumLoadedTilePrimitive::GetLoadedTile ( )
pure virtual

Gets the loaded tile that this primitive belongs to.

◆ GetMeshComponent()

virtual UStaticMeshComponent & ICesiumLoadedTilePrimitive::GetMeshComponent ( )
pure virtual

Gets the Unreal static mesh component built to represent the glTF primitive.

◆ GetMeshPrimitive()

virtual const CesiumGltf::MeshPrimitive * ICesiumLoadedTilePrimitive::GetMeshPrimitive ( ) const
pure virtual

Gets the glTF primitive.

◆ GetPrimitiveFeatures()

virtual const FCesiumPrimitiveFeatures & ICesiumLoadedTilePrimitive::GetPrimitiveFeatures ( ) const
pure virtual

Gets the Blueprint-accessible wrapper for the glTF Primitive's mesh features.

◆ GetPrimitiveMetadata()

virtual const FCesiumPrimitiveMetadata & ICesiumLoadedTilePrimitive::GetPrimitiveMetadata ( ) const
pure virtual

Gets the Blueprint-accessible wrapper for the glTF Primitive's EXT_structural_metadata extension.


The documentation for this class was generated from the following file: