Commit Graph

4 Commits

Author SHA1 Message Date
Ryan Schmidt
52ab1f5537 ModelingTools: Clean up AutoUV Tools and add support for Polygroup Layers.
- Refactor recompute-UVs-for-groups/islands out of ParameterizeMeshOp/Tool into RecomputeUVsOp/Tool. RecomputeUVsTool supports selection of active PolygroupLayer when applicable. Add support for auto-repacking.
- Clean up ParameterizeMeshOp/Tool, remove functionality related to recomputation that was moved to Recompute tool, add separate property sets for UVAtlas and XAtlas
- Add FDynamicMeshUVEditor::QuickPack() function to compute UV layout
- Add support for Polygroup Layer selection in SetCollisionGeometryTool, if only one source object is in use

#rb none
#rnx
#jira none
#preflight 60ced4b0be81e800012cc135

[CL 16724375 by Ryan Schmidt in ue5-main branch]
2021-06-20 16:57:02 -04:00
Ryan Schmidt
e196c256e4 GeometryProcessing: remove forwarding headers used in GeometryCore transition, and update all affected includes.
#rb none
#rnx
#jira none
#preflight 60c52c5db9446100014da02d

[CL 16653115 by Ryan Schmidt in ue5-main branch]
2021-06-13 00:35:22 -04:00
Jimmy Andrews
a6dcd9b771 Polygroup helper improvments:
- Change MaxGroupID on PolygroupSet to match how it's computed on FDynamicMesh3, to be 1+the actual max (i.e. to be a bound, so we can write < in the for loop, same as MaxVertexID and friends)
 - Update PolygroupUtil functions to work on const meshes where possible
 - Expand PolygroupUtil functions some so it's easier to work with polygroups in cases where we can't use PolygroupSet (mainly if the mesh is const)

#rb ryan.schmidt
#rnx

[CL 15057483 by Jimmy Andrews in ue5-main branch]
2021-01-12 17:35:51 -04:00
Ryan Schmidt
d3b5ddd955 GeometryProcessing: additional support for Polygroup attribute layers. Add PolygroupUtil.h with utility functions for finding polygroup attributes from name/etc. Add FPolygroupSet class that provides standard Polygroup API for either base FDynamicMesh3 polygroups, or a FDynamicMeshPolygroupAttribute layer, with MaxGroupID tracking/allocation.
#rb none
#rnx
#jira none

[CL 14842394 by Ryan Schmidt in ue5-main branch]
2020-12-03 02:35:44 -04:00