USimpleDynamicMeshComponent

[USimpleDynamicMeshComponent](API\Plugins\ModelingComponents\USimpleDynamicMeshComponent) is a mesh component similar to [UProceduralMeshComponent](API\Plugins\ProceduralMeshComponent\UProceduralMeshComponent), except it bases the renderable geometry off an internal [FDynamicMesh3](API\Plugins\DynamicMesh\FDynamicMesh3) instance.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/SimpleDynamicMeshComponent.h

Include

#include "SimpleDynamicMeshComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(HideCategories=(LOD, Physics, Collision), EditInlineNew, ClassGroup=Rendering)
class USimpleDynamicMeshComponent : public UBaseDynamicMeshComponent

Remarks

USimpleDynamicMeshComponent is a mesh component similar to UProceduralMeshComponent, except it bases the renderable geometry off an internal FDynamicMesh3 instance.

There is some support for undo/redo on the component (

This component draws wireframe-on-shaded when Wireframe is enabled, or when bExplicitShowWireframe = true

Variables

Name Description

Public variable UProperty

bool

 

bDrawOnTop

Do not use this

Public variable UProperty

bool

 

bExplicitShowWireframe

If true, we always show the wireframe on top of the shaded mesh, even when not in wireframe mode

Public variable

FSimpleMulticas...

 

OnMeshChanged

This delegate fires when a FCommandChange is applied to this component, so that parent objects know the mesh has changed.

Public variable UProperty

EDynamicMeshTan...

 

TangentsType

How should Tangents be calculated/handled

Public variable

TFunction< FCol...

 

TriangleColorFunc

If this function is set, we will use these colors instead of vertex colors

Constructors

Name Description

Public function

USimpleDynamicMeshComponent

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

Bake

(
    FMeshDescription* MeshDescript...,
    bool bHaveModifiedTopology,
    const FConversionToMeshDescriptionO...
)

Write the internal mesh to a MeshDescription

Public function

void

 

Bake

(
    FMeshDescription* MeshDescript...,
    bool bHaveModifiedTopology
)

Write the internal mesh to a MeshDescription with default conversion options

Public function Virtual

void

 

DisableSecondaryTriangleBuffers()

Disable secondary triangle buffers. This invalidates the SceneProxy.

Public function Virtual

void

 

EnableSecondaryTriangleBuffers

(
    TUniqueFunction< bool...
)

If Secondary triangle buffers are enabled, then we will filter triangles that pass the given predicate function into a second index buffer.

Public function

TUniquePtr< ...

 

ExtractMesh

(
    bool bNotifyUpdate
)

Public function

void

 

FastNotifyColorsUpdated()

Call this instead of NotifyMeshUpdated() if you have only updated the vertex colors (or triangle color function).

Public function

void

 

FastNotifyPositionsUpdated

(
    bool bNormals,
    bool bColors,
    bool bUVs
)

Call this instead of NotifyMeshUpdated() if you have only updated the vertex positions.

Public function

void

 

FastNotifySecondaryTrianglesChanged()

Call this instead of NotifyMeshUpdated() if you have only updated secondary triangle sorting.

Public function

void

 

FastNotifyUVsUpdated()

Call this instead of NotifyMeshUpdated() if you have only updated the vertex uvs.

Public function Const

const FDynam...

 

GetMesh()

Public function

FDynamicMesh...

 

GetMesh()

Public function

FMeshTangent...

 

GetTangents()

Calling this with TangentsType = AutoCalculated will result in possibly-expensive Tangents calculation

Public function

void

 

InitializeMesh

(
    FMeshDescription* MeshDescript...
)

Initialize the internal mesh from a MeshDescription

Public function

void

 

SetDrawOnTop

(
    bool bSet
)

Do not use this

Overridden from UBaseDynamicMeshComponent

Name Description

Public function Virtual Const

bool

 

EnableWireframeRenderPass()

Protected function Virtual

void

 

NotifyMaterialSetUpdated()

This is called to tell our RenderProxy about modifications to the material set.

Public function Virtual

void

 

NotifyMeshUpdated()

Change tracking/etc Call this if you update the mesh via GetMesh().

Overridden from IMeshVertexCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshVertexChange* Chang...,
    bool bRevert
)

Apply a vertex deformation change to the internal mesh

Overridden from IMeshCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshChange* Change,
    bool bRevert
)

Apply a general mesh change to the internal mesh

Overridden from IMeshReplacementCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshReplacementChange* ...,
    bool bRevert
)

Apply a general mesh replacement change to the internal mesh

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