TLevelSet

Windows
MacOS
Linux

Inheritance Hierarchy

FImplicitObject

TLevelSet

References

Module

Chaos

Header

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

Include

#include "Chaos/Levelset.h"

Syntax

template<class T, int d>
class TLevelSet : public Chaos::FImplicitObject

Constructors

Name Description

Public function

TLevelSet

(
    std::istream& Stream
)

Public function

TLevelSet

(
    const TLevelSet < T, d >& Other
)

Public function

TLevelSet

(
    TLevelSet < T, d >&& Other
)

Public function

TLevelSet

(
    FErrorReporter & ErrorReporter,
    const TUniformGrid < T, d >& InGrid,
    const TParticles < T, d >& InPartic...,
    const TTriangleMesh < T >& Mesh,
    const int32 BandWidth
)

Public function

TLevelSet

(
    FErrorReporter & ErrorReporter,
    const TUniformGrid < T, d >& InGrid,
    const FImplicitObject & InObject,
    const int32 BandWidth,
    const bool bUseObjectPhi
)

Destructors

Name Description

Public function Virtual

~TLevelSet()

Functions

Name Description

Public function Const

T

 

ApproximateNegativeMaterial()

Do the simplest thing possible to estimate the volume bounded by the zero'th isocontour of the level set.

Public function

bool

 

CheckData

(
    FErrorReporter & ErrorReporter,
    const TParticles < T, d >& InPartic...,
    const TTriangleMesh < T >& Mesh,
    const TArray < TVector < T, 3 >>& No...
)

Public function

T

 

ComputeLevelSetError

(
    const TParticles < T, d >& InPartic...,
    const TArray < TVector < T, 3 >>& No...,
    const TTriangleMesh < T >& Mesh,
    T& AngleError,
    T& MaxDistError
)

Public function Const

bool

 

ComputeMassProperties

(
    T& OutVolume,
    TVector < T, d >& OutCOM,
    PMatrix < T, d, d >& OutInertia,
    TRotation < T, d >& OutRotationOfMa...
)

Public function Const

const TUnifo ...

 

GetGrid()

Returns a const ref to the underlying grid structure.

Public function Const

const TArray ...

 

GetNormalsArray()

Returns a const ref to the underlying grid of normals.

Public function Const

const TArray ...

 

GetPhiArray()

Returns a const ref to the underlying phi grid.

Public function

void

 

OutputDebugData

(
    FErrorReporter & ErrorReporter,
    const TParticles < T, d >& InPartic...,
    const TArray < TVector < T, 3 >>& No...,
    const TTriangleMesh < T >& Mesh,
    const FString FileName
)

Output a mesh and level set as obj files.

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < FConve ...,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TCapsu ...,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TBox < ...,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled < TSpher ...,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const FConvex & QueryGeom,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TCapsule < FReal >& QueryGeom,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TSphere < FReal , 3 >& QueryGe...,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeom

(
    const TBox < FReal , 3 >& QueryGeom,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Const

bool

 

OverlapGeomImp

(
    const QueryGeomType& QueryGeom,
    const FRigidTransform3 & QueryTM,
    const FReal Thickness,
    FMTDInfo * OutMTD
)

Public function Virtual Const

T

 

PhiWithNormal

(
    const TVector < T, d >& x,
    TVector < T, d >& Normal
)

Public function

void

 

SerializeImp

(
    FArchive & Ar
)

Public function

void

 

Shrink

(
    const T Value
)

Public function Const

T

 

SignedDistance

(
    const TVector < T, d >& x
)

Public function Static

constexpr EI ...

 

StaticType()

Public function Const

bool

 

SweepGeom

(
    const TBox < FReal , 3 >& QueryGeom,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < FConve ...,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TSphere < FReal , 3 >& QueryGe...,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TCapsu ...,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TCapsule < FReal >& QueryGeom,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const FConvex & QueryGeom,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TSpher ...,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeom

(
    const TImplicitObjectScaled < TBox < ...,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

bool

 

SweepGeomImp

(
    const QueryGeomType& QueryGeom,
    const FRigidTransform3 & StartTM,
    const FVec3 & Dir,
    const FReal Length,
    FReal & OutTime,
    FVec3 & OutPosition,
    FVec3 & OutNormal,
    int32 & OutFaceIndex,
    const FReal Thickness,
    const bool bComputeMTD
)

Public function Const

void

 

Write

(
    std::ostream& Stream
)

Overridden from FImplicitObject

Name Description

Public function Virtual Const

const TAABB <...

 

BoundingBox()

Public function Virtual Const

TUniquePtr < ...

 

DeepCopy()

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual

void

 

Serialize

(
    FChaosArchive & Ar
)

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback