Navigation
API > API/Plugins > API/Plugins/ModelingOperators > API/Plugins/ModelingOperators/PolyModelingOps
Inheritance Hierarchy
- FDynamicMeshOperator
- FRegionOffsetOp
References
| Module | ModelingOperators |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingOperators/Public/PolyModelingOps/RegionOffsetOp.h |
| Include | #include "PolyModelingOps/RegionOffsetOp.h" |
Syntax
class FRegionOffsetOp : public UE::Geometry::FDynamicMeshOperator
Remarks
RegionOffsetOp extrudes a set of triangles of a mesh in a linear direction, with various options for how to process that extrusion.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bInferGroupsFromNeighbours | Assign new groups to regions of the extrusion "tube" based on the existing adjacent groups before extrusion. | |
| bool | bInferMaterialID | If true, Material IDs around the border of the extrude area are propagated "down" the extrusion tube | |
| bool | bNewGroupPerSubdivision | If true, assign a separate group for each subdivision, otherwise all subdivisions have the same group | |
| bool | bRecomputeNormals | Determine whether normals should be recomputed | |
| bool | bRemapExtrudeGroups | Assign new GroupIDs to each input GroupID in the extrude area. | |
| bool | bShellsToSolids | If bShellsToSolids is true, patches surrounded by mesh boundaries will be extruded into closed solids instead of open shells | |
| bool | bUseColinearityForSettingBorderGroups | (this parameter may not be relevant and perhaps should be removed...) Used when setting groups for the sides when the extrusion includes a mesh border. | |
| bool | bUVIslandPerGroup | If true, assign a new UV island for each new group, otherwise each disconnected extrusion tube is unwrapped to a single UV island | |
| double | CreaseAngleThresholdDeg | If the opening angle at an edge of the extrusion tube is > this threshold, "cut" any group that crosses the edge into two groups | |
| int32 | NumSubdivisions | Number of subdivisions along the extrusion "tubes" | |
| double | OffsetDistance | ||
| EOffsetComputationMode | OffsetMode | ||
| TSharedPtr< FSharedConstDynamicMesh3 > | OriginalMeshShared | InputsHandle to the source DynamicMesh | |
| int | SetMaterialID | Constant Material ID to set along the extrusion tube | |
| TArray< int32 > | TriangleSelection | Triangles of the OriginalMesh that should be extruded | |
| double | UVScaleFactor | Scaling applied to the default UV values |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CalculateResultInPlace
(
FDynamicMesh3& EditMesh, |
Outputs Compute result applied directly to EditMesh |
Overridden from FDynamicMeshOperator
| Type | Name | Description | |
|---|---|---|---|
| void | CalculateResult
(
FProgressCancel* Progress |
Calculate the result of the operator. This will populate the internal Mesh and Transform. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EOffsetComputationMode | Parameters |