Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos > FConvexStructureData
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ConvexStructureData.h |
Include | #include "Chaos/ConvexStructureData.h" |
template<typename T_OP, typename T_EMPTYOP>
auto ConstDataOp
(
const T_OP & Op,
const T_EMPTYOP & EmptyOp
) const
Remarks
Call a function on the read-only data (cast to Small, Medium or Large indices as appropriate). It will call "Op" on the down-casted data container if we have a valid container. It will call EmptyOp if the container has not been set up (IndexType is None). Note: This expands into a switch statement, calling the lambda with a container of each index size.
Must be used with an auto lambda to handle the downcasting, e.g.: int32 Plane0VertexCount = ConstDataOp( { return ConcreteData.NumPlaneVertices(0); }, { return 0; });