TSphereSpecializeSamplingHelper< T, 3 >

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Sphere.h

Include

#include "Chaos/Sphere.h"

Syntax

template<typename T>
struct TSphereSpecializeSamplingHelper< T, 3 >

Functions

Name Description

Public function Static

void

 

ComputeBottomHalfSemiSphere

(
    TArray< TVec3< T >>& Points,
    const TSphere< T, 3 >& Sphere,
    const int32 NumPoints,
    const int32 SpiralSeed
)

Public function Static

void

 

ComputeGoldenSpiralPoints

(
    TArray< TVec3< T >>& Points,
    const TSphere< T, 3 >& Sphere,
    const int32 NumPoints,
    const bool FirstHalf,
    const bool SecondHalf,
    const int32 SpiralSeed
)

Returns NumPoints_ points evenly distributed on a 3D Sphere_.

Public function Static

void

 

ComputeGoldenSpiralPoints

(
    TArray< TVec3< T >>& Points,
    const TVec3< T >& Center,
    const T Radius,
    const int32 NumPoints,
    const bool BottomHalf,
    const bool TopHalf,
    const int32 SpiralSeed
)

Use the golden spiral method to evenly distribute points on a sphere.

Public function Static

void

 

ComputeSamplePoints

(
    TArray< TVec3< T >>& Points,
    const TSphere< T, 3 >& Sphere,
    const int32 NumPoints
)

Public function Static

void

 

ComputeTopHalfSemiSphere

(
    TArray< TVec3< T >>& Points,
    const TSphere< T, 3 >& Sphere,
    const int32 NumPoints,
    const int32 SpiralSeed
)

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