Navigation
API > API/Plugins > API/Plugins/ModelingOperators
Base class for Mesh Offset operations (ie displacement along some kind of normal) Optionally duplicates input mesh and joins the two together, either by welding along shared border or creating quad-strip join.
| Name | FMeshOffsetBaseOp |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingOperators/Public/DeformationOps/MeshOffsetOps.h |
| Include Path | #include "DeformationOps/MeshOffsetOps.h" |
Syntax
class FMeshOffsetBaseOp : public UE::Geometry::FSimpleMeshProcessingBaseOp
Inheritance Hierarchy
- FDynamicMeshOperator → FSimpleMeshProcessingBaseOp → FMeshOffsetBaseOp
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshOffsetBaseOp
(
const FDynamicMesh3* Mesh |
DeformationOps/MeshOffsetOps.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseNormals | TSharedPtr< FMeshNormals > | DeformationOps/MeshOffsetOps.h | ||
| bCreateShell | bool | DeformationOps/MeshOffsetOps.h | ||
| bFixedBoundary | bool | DeformationOps/MeshOffsetOps.h | ||
| BoundaryCache | FMeshBoundaryCache | DeformationOps/MeshOffsetOps.h | ||
| BoundaryLoops | TSharedPtr< UE::Geometry::FMeshBoundaryLoops > | DeformationOps/MeshOffsetOps.h | ||
| bUseWeightMap | bool | DeformationOps/MeshOffsetOps.h | ||
| OffsetRange | FInterval1d | Positive range of offset distances (default offset will be max value unless there is a weightmap) | DeformationOps/MeshOffsetOps.h | |
| OffsetSign | double | Sign of offset, should be +1 or -1 | DeformationOps/MeshOffsetOps.h | |
| WeightMap | TSharedPtr< UE::Geometry::FIndexedWeightMap1f > | DeformationOps/MeshOffsetOps.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalculateOffset
(
FProgressCancel* Progress |
Subclasses must implement this function, it should update ResultMesh | DeformationOps/MeshOffsetOps.h | |
double GetOffsetDistance
(
int32 VertexID, |
DeformationOps/MeshOffsetOps.h |
Overridden from FDynamicMeshOperator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CalculateResult
(
FProgressCancel* Progress |
Calculate the result of the operator. This will populate the internal Mesh and Transform. | DeformationOps/MeshOffsetOps.h |