Commit Graph

22 Commits

Author SHA1 Message Date
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
Ryan Schmidt
196be0f6d1 GeometryProcessing: replace UE::Geometry::FVector3d/FVector3f with UE Core versions based on TVector<T>. FVector3<T> is now an extension of TVector<T>. Update all affected call sites.
#rb none
#rnx
#jira none

[CL 15870068 by Ryan Schmidt in ue5-main branch]
2021-03-30 21:25:22 -04:00
Ryan Schmidt
ffe3b401cd GeometryProcessing: move all public types in GeometryProcessing plugin into UE::Geometry:: namespace, as well as some code in MeshModelingToolset. Fix fallout in Water, Paint Mode, ChaosEditor, DataPrep, Text3D, Unit Tests, internal projects.
#rb jimmy.andrews, semion.piskarev
#jira none

[CL 15661651 by Ryan Schmidt in ue5-main branch]
2021-03-09 19:33:56 -04:00
Ryan Schmidt
c48788b722 GeometryProcessing:
Add insights profiling tags to RemeshMeshOp and FRemesher. Small optimizations to FRemesher::ProcessEdge(), which has surprising overhead for no-ops (ie edge is not modified).
Add FUniqueIndexSet, alternative to a TSet for constructing list of unique indices (eg when finding set of one-ring tris of a list of vertices). Generally more efficient, particularly for large sets.
Improve FSubRegionRemesher. Make VertexROI private, provide accessors and update usage sites. Optimize InitializeFromVertexROI(), which is an expensive part of dynamic mesh sculpting. Make FullSmoothPass_Buffer() compute in parallel.

ModelingTools:
Major refactor of DynamicMeshSculptTool to improve performance (2-4x improvement on large brush sizes on 1m triangle mesh). A single FSubRegionRemesher is now created and maintained for entire brush stroke, rather than recreating every stamp. This avoids the high cost of initialzing full-mesh constraint set, and allows re-use of various allocated memory buffers. Reorganize major sub-steps computed in a single brush-stamp tick to allow Async computation where possible. Replace some ROI TSets with FUniqueIndexSet. Instrument for Insights, remove old cycle counting.

#rb none
#rnx
#jira none

[CL 15215321 by Ryan Schmidt in ue5-main branch]
2021-01-27 01:53:01 -04:00
Marc Audy
68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
Marc Audy
a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
ryan schmidt
e7f3baf1ca Edigrate Dev-Editor updates to InteractiveToolsFramework, GeometryProcessing, MeshModelingToolset, and ModelingTools Editor Mode Plugins. Update a few files in new MeshPaint Plugin for UInteractiveTool rename of ::Tick() to ::OnTick().
#rb none
#rnx

#ROBOMERGE-SOURCE: CL 12908995 via CL 12908996 via CL 12909001
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v682-12900288)

[CL 12909003 by ryan schmidt in Main branch]
2020-04-18 18:42:59 -04:00
ryan schmidt
be36fdfeb2 ModelingTools: fix issues w/ bad mesh changes being created in dynamic mesh sculpting.
Problem is that during remesh passes the affected triangle set can expand (due to splits/collapses on ROI boundary) and our tracking of it is not perfect. Remesher now tells ChangeTracker before it modifies an edge, rather than Sculpt tool trying to predict set of modified triangles up front.

In theory this allows for smaller changes, because often only a subset of triangles are modified. However ChangeTracker currently only emits modified vertices as part of modified triangles. So we still need to save the full triangle ROI. Made several MeshChangeTracker functions protected for now, because they cannot be used externally due to this limitation. Updated call sites to those functions (which were likely also buggy).

#rb jimmy.andrews
#rnx
#jira none

#ROBOMERGE-SOURCE: CL 12459928 in //UE4/Release-4.25/... via CL 12459930 via CL 12459991
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v672-12450963)

[CL 12460009 by ryan schmidt in Main branch]
2020-03-26 17:20:25 -04:00
Max Chen
b4881d8bf8 Copying //UE4/Dev-Editor to Dev-Tools-Staging (//UE4/Dev-Tools-Staging) @11123875
#rb none
#jira none

[CL 11123880 by Max Chen in Dev-Tools-Staging branch]
2020-01-27 20:11:15 -05:00
Marc Audy
360d078ca3 Second batch of remaining Engine copyright updates.
#rnx
#rb none

[CL 10871248 by Marc Audy in Main branch]
2019-12-27 09:26:59 -05:00
ryan schmidt
5f9adde38a safely handle non-finite vertex positions that can be generated during sculpting. Copy CL 9965788 from Dev-Editor.
#rb none
#rnx
#jira UE-83312

#ROBOMERGE-SOURCE: CL 10072043 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v574-10069753)

[CL 10072051 by ryan schmidt in Main branch]
2019-11-07 12:45:47 -05:00
Ryan Schmidt
148dadcda1 GeometryProcessing: replace invalid vertex position check with checkSlow, and handle invalid positions more cleanly
#rb none
#rnx
#fyi jimmy.andrews

[CL 9965788 by Ryan Schmidt in Dev-Editor branch]
2019-11-03 22:03:27 -05:00
ryan schmidt
14c81d397b Merging CL# 9542043 from UE4/Dev-Editor
ModelingTools: Fix Pinch and Flatten brushes. These brushes were being applied much too quickly and produced unstable/undesirable results.
#rb none
#jira UE-81676
#rnx

#ROBOMERGE-SOURCE: CL 9692306 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v538-9681622)

[CL 9692308 by ryan schmidt in Main branch]
2019-10-18 13:04:19 -04:00
Ryan Schmidt
0e1d50038a ModelingTools: Fix Pinch and Flatten brushes. These brushes were being applied much to quickly and produced unstable/undesirable results.
#rb none
#jira UE-81676
#rnx

[CL 9542043 by Ryan Schmidt in Dev-Editor branch]
2019-10-10 16:39:43 -04:00
Chris Gagnon
2e87118a18 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) Interim 4.24.
#rb none

[CL 8614014 by Chris Gagnon in Main branch]
2019-09-10 11:35:20 -04:00
Ryan Schmidt
6d0131be4d GeometryProcessing: FMeshConstraintUtil::ConstrainAllSeams now done in parallel, added FMeshConstraintUtil::ConstrainEdgeROISeams. Refactored FRemesher internals for smoothing to allow for localized smoothing in subclasses.
#rb none
#rnx

[CL 8065323 by Ryan Schmidt in Dev-Editor branch]
2019-08-15 16:25:03 -04:00
Ryan Schmidt
ab7794dbed MeshProcessing: add Remesher::OnEdgeFlip to notify subclasses/etc on edge flips
#rb none
#rnx

[CL 8044081 by Ryan Schmidt in Dev-Editor branch]
2019-08-14 17:20:50 -04:00
Max Chen
4561801a81 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) @7119039
#rb none

[CL 7120528 by Max Chen in Dev-Editor branch]
2019-06-21 01:21:43 -04:00
Ryan Schmidt
27ca6da6e5 compile fix for accidental implicit conversion in constructor, also removed erroneous new left over from ported code
#jira UE-75677
#rb none
#rnx

[CL 6849492 by Ryan Schmidt in Main branch]
2019-06-05 11:53:10 -04:00
Chris Gagnon
930e33cb48 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861
#rb none

[CL 6838042 by Chris Gagnon in Main branch]
2019-06-04 15:42:48 -04:00
Ryan Schmidt
802e66c70b move GeometryProcessing plugin from NotForLicensees to Experimental
#rb none
#rnx

[CL 6266957 by Ryan Schmidt in Dev-Editor branch]
2019-05-02 21:41:24 -04:00