FLevelSet

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FImplicitObject

FLevelSet

References

Module

Chaos

Header

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

Include

#include "Chaos/Levelset.h"

Syntax

class FLevelSet : public Chaos::FImplicitObject

Constructors

Name Description

Public function

FLevelSet

(
    std::istream& Stream
)

Public function

FLevelSet

(
    const FLevelSet& Other
)

Public function

FLevelSet

(
    FLevelSet&& Other
)

Public function

FLevelSet

(
    FErrorReporter& ErrorReporter,
    const TUniformGrid< FReal, 3 >& In...,
    const FParticles& InParticles,
    const FTriangleMesh& Mesh,
    const int32 BandWidth
)

Public function

FLevelSet

(
    FErrorReporter& ErrorReporter,
    const TUniformGrid< FReal, 3 >& In...,
    const FImplicitObject& InObject,
    const int32 BandWidth,
    const bool bUseObjectPhi
)

Destructors

Name Description

Public function Virtual

~FLevelSet()

Functions

Name Description

Public function Const

FReal

 

ApproximateNegativeMaterial()

Estimate the volume bounded by the zero'th isocontour of the level set.

Public function

bool

 

CheckData

(
    FErrorReporter& ErrorReporter,
    const FParticles& InParticles,
    const FTriangleMesh& Mesh,
    const TArray< FVec3 >& Normals
)

Public function

FReal

 

ComputeLevelSetError

(
    const FParticles& InParticles,
    const TArray< FVec3 >& Normals,
    const FTriangleMesh& Mesh,
    FReal& AngleError,
    FReal& MaxDistError
)

Public function Const

bool

 

ComputeMassProperties

(
    FReal& OutVolume,
    FVec3& OutCOM,
    FMatrix33& OutInertia,
    FRotation3& OutRotationOfMass
)

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 FParticles& InParticles,
    const TArray< FVec3 >& Normals,
    const FTriangleMesh& Mesh,
    const FString FileName
)

Output a mesh and level set as obj files.

Public function Const

bool

 

OverlapGeom

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

Public function Const

bool

 

OverlapGeom

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

Public function Const

bool

 

OverlapGeom

(
    const TImplicitObjectScaled< FCapsu...,
    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 TBox< FReal, 3 >& 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

 

OverlapGeomImp

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

Public function

void

 

SerializeImp

(
    FArchive& Ar
)

Public function

void

 

Shrink

(
    const FReal Value
)

Public function Const

FReal

 

SignedDistance

(
    const FVec3& x
)

Public function Static

constexpr EI...

 

StaticType()

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

 

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 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 FCapsule& 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< FCapsu...,
    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 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

 

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 FAABB3

 

BoundingBox()

Public function Virtual Const

TUniquePtr< ...

 

DeepCopy()

Public function Virtual Const

TUniquePtr< ...

 

DeepCopyWithScale

(
    const FVec3& Scale
)

Public function Virtual Const

uint32

 

GetTypeHash()

Public function Virtual Const

FReal

 

PhiWithNormal

(
    const FVec3& x,
    FVec3& Normal
)

Find the closest point on the surface, and return the separating distance and axis.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Public function Virtual

void

 

Serialize

(
    FChaosArchive& Ar
)