RevolveUtil::GenerateSweepCurve

Generates a sweep curve with the initial frame at the origin and the rest rotated around the given axis.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Util/RevolveUtil.h

Include

#include "Util/RevolveUtil.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Private/Util/RevolveUtil.cpp

Syntax

namespace RevolveUtil
{
    GEOMETRICOBJECTS_API void RevolveUtil::GenerateSweepCurve
    (
        const FVector3d & RevolutionAxisOrigin,
        const FVector3d & RevolutionAxisDirection,
        double DegreesOffset,
        double DegreesPerStep,
        double DownAxisOffset,
        int TotalNumFrames,
        TArray< FFrame3d > & SweepCurveOut
    )
}

Remarks

Generates a sweep curve with the initial frame at the origin and the rest rotated around the given axis.

Parameters

Parameter

Description

RevolutionAxisOrigin

RevolutionAxisDirection

Should be normalized.

DegreesOffset

Number of degrees to rotate the first frame.

DegreesPerStep

Number of degrees each frame is rotated from the previous

DownAxisOffset

Distance to move each frame up the axis from the previous (for spirals)

TotalNumFrames

Number of frames to create, including the first frame

SweepCurveOut

Output

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss