TImplicitMorphology

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryCore

Header

/Engine/Source/Runtime/GeometryCore/Public/Implicit/Morphology.h

Include

#include "Implicit/Morphology.h"

Syntax

template<typename TriangleMeshType>
class TImplicitMorphology

Variables

Name Description

Public variable

TFunction< bool...

 

CancelF

If this function returns true, we should abort calculation

Protected variable

TSweepingMeshSD...

 

ComputedSDF

Intermediate result of first pass, could potentially be re-used if recomputed w/ equal or smaller Distance.

Public variable

double

 

Distance

Distance of offset; should be positive.

Public variable

double

 

GridCellSize

Size of the cells used when sampling the distance field

Protected variable

FMarchingCubes

 

MarchingCubes

Stores result (returned as a const FMeshShapeGenerator)

Public variable

double

 

MeshCellSize

Size of the cells used when meshing the output (marching cubes' cube size)

Public variable

EMorphologyOp

 

MorphologyOp

Public variable

const TriangleM...

 

Source

Inputs

Public variable

TMeshAABBTree3<...

 

SourceSpatial

Destructors

Name Description

Public function Virtual

~TImplicitMorphology()

Functions

Name Description

Protected function

void

 

ComputeFirstPass

(
    double UnsignedOffset,
    double SignedOffset
)

Protected function

void

 

ComputeSecondPass

(
    double UnsignedOffset,
    double SignedOffset
)

Public function

const FMeshS...

 

Generate()

Public function

void

 

SetCellSizesAndDistance

(
    FAxisAlignedBox3d Bounds,
    double DistanceIn,
    int TargetInputVoxelCount,
    int TargetOutputVoxelCount
)

Set cell sizes to hit the target voxel counts along the max dimension of the bounds.

Public function

void

 

SetGridCellSize

(
    FAxisAlignedBox3d Bounds,
    double DistanceIn,
    int TargetInputVoxelCount
)

Set input grid cell size to hit the target voxel counts along the max dimension of the bounds.

Public function

void

 

SetMeshCellSize

(
    FAxisAlignedBox3d Bounds,
    double DistanceIn,
    int TargetInputVoxelCount
)

Set output meshing cell size to hit the target voxel counts along the max dimension of the bounds.

Public function

bool

 

Validate()

Enums

Name

Description

Public enum

EMorphologyOp

Morphology operation types