RevolveUtil::ProfileIsCCWRelativeRevolve

Returns true if the profile curve is counterclockwise relative to the rotation direction.

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 bool RevolveUtil::ProfileIsCCWRelativeRevolve
    (
        TArray< FVector3d > & ProfileCurve,
        const FVector3d & RevolutionAxisOrigin,
        const FVector3d & RevolutionAxisDirection,
        bool bProfileCurveIsClosed
    )
}

Remarks

Returns true if the profile curve is counterclockwise relative to the rotation direction. I.e., if you are looking from the side with the revolution axis pointing up and the curve to the left of the axis, the curve should be counterclockwise. If the curve is not closed, the function looks at the bottom of the profile curve relative to the revolution axis and checks whether the outer edge of the bottom goes in the direction that it would on a counterclockwise curve (up, in our example).

Results are undefined if a fully revolved mesh would be self intersecting. Assumes that RevolutionAxisDirection is normalized.

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