Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USplineMeshComponent
Description
Computes the bounding box, in world space, for a given bounding box distorted by the spline in local space. By default this method uses the provided mesh bounds that were used to define the spline range [0,1] so all points are expected to stay in that range. In case the bounds to deform are overriden by the optional parameter then linear extrapolation will be applied at the beginning and at the end of the spline for the exceeding part.
| Name | ComputeDistortedBounds |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SplineMeshComponent.h |
| Include Path | #include "Components/SplineMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SplineMeshComponent.cpp |
FBox ComputeDistortedBounds
(
const FTransform & InLocalToWorld,
const FBoxSphereBounds & InMeshBounds,
const FBoxSphereBounds * InBoundsToDistort
) const
Bounds, in world space, of the provided bounds distorted by the spline.
Parameters
| Name | Remarks |
|---|---|
| InLocalToWorld | Transformation to apply to the computed bounds to convert them from local space to world space. |
| InMeshBounds | Bounds of the static mesh that get distorted by the spline. |
| InBoundsToDistort | Optional bounds to distort instead of using the mesh bounds. |