Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/Drawing
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPreviewMesh
- UPolyEditPreviewMesh
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/PolyEditPreviewMesh.h |
| Include | #include "Drawing/PolyEditPreviewMesh.h" |
Syntax
UCLASS (Transient)
class UPolyEditPreviewMesh : public UPreviewMesh
Remarks
UPolyEditPreviewMesh is a variant of UPreviewMesh intended for use as a 'live preview' of a mesh creation/editing operation. The class supports initializing the preview mesh in various ways, generally as a submesh of a base mesh.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< UE::Geometry::FDynamicSubmesh3 > | ActiveSubmesh | ||
| bool | bHaveMeshTransform | ||
| TArray< int32 > | EditVertices | ||
| TMap< int32, int32 > | ExtrudeToInitialVerts | ||
| FDynamicMesh3 | InitialEditPatch | ||
| TArray< FVector3d > | InitialNormals | ||
| TArray< FVector3d > | InitialPositions | ||
| TArray< FVector3d > | InitialTriNormals | ||
| FVector3d | InputDirection | ||
| FTransform3d | MeshTransform |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyTranslationToPreview
(
const FTransform& TransformIn, |
||
| void | InitializeExtrudeType
(
FDynamicMesh3&& BaseMesh, |
||
| void | InitializeExtrudeType
(
const FDynamicMesh3* SourceMesh, |
"Extrude Type" duplicates the input faces, offsets them using FExtrudeMesh, and stitches them together | |
| void | InitializeInsetType
(
const FDynamicMesh3* SourceMesh, |
"Inset Type" duplicates the input faces and insets them using FInsetMeshRegion | |
| void | InitializeStaticType
(
const FDynamicMesh3* SourceMesh, |
"Static Type" is just a static mesh | |
| void | MakeExtrudeTypeHitTargetMesh
(
FDynamicMesh3& TargetMesh, |
Make a hit-target mesh that is an infinite extrusion along extrude direction. | |
| void | MakeInsetTypeTargetMesh
(
FDynamicMesh3& TargetMeshOut |
||
| void | MakeStaticTypeTargetMesh
(
FDynamicMesh3& TargetMesh |
||
| void | UpdateExtrudeType
(
double NewOffset, |
Update extrude-type preview mesh by moving existing offset vertices | |
| void | UpdateExtrudeType
(
TFunctionRef< void(FDynamicMesh3&)> UpdateMeshFunc, |
Update extrude-type preview mesh using external function. | |
| void | UpdateExtrudeType_FaceNormalAvg
(
double NewOffset |
Update extrude-type preview mesh by moving existing offset vertices along their connected triangle normals and then averaging positions | |
| void | UpdateInsetType
(
double NewOffset, |
||
| void | UpdateStaticType
(
TFunctionRef< void(FDynamicMesh3&)> UpdateMeshFunc, |