Commit Graph

281 Commits

Author SHA1 Message Date
rinat abdrashitov
fc68d1cae0 -Wrapped FSparseMatrixD in namespace UE::Geometry.
-Removed unused includes.
-Added SparseMatrix.cpp
-Added a function for slicing the sparse matrix.


#rb jimmy.andrews
#preflight 644c0967864f15ebf5e71bef
#rnx

[CL 25309503 by rinat abdrashitov in ue5-main branch]
2023-05-02 18:17:58 -04:00
rinat abdrashitov
30a89f05ee Renamed FSparseMatrixD.h to SparseMatrix.h
#rb jimmy.andrews
#preflight 644acbbdb208f61af8313f07
#rnx

[CL 25239086 by rinat abdrashitov in ue5-main branch]
2023-04-28 16:05:12 -04:00
matija kecman
7b090b69c0 Add Geometry Selection visualization to Normals tool
#jira UE-183457
#preflight 64492eecb208f61af87912db
#rb ryan.schmidt

[CL 25199891 by matija kecman in ue5-main branch]
2023-04-26 11:54:13 -04:00
semion piskarev
70eb21d078 MeshModelingTools: Make the box finding code in MeshSimpleShapeApproximation prefer to orient the boxes such that they align with the world frame better.
#rb Jimmy.Andrews
#preflight 6447df3f773f23812dab4c49

[CL 25183877 by semion piskarev in ue5-main branch]
2023-04-25 13:27:03 -04:00
semion piskarev
75a68e7934 MeshModelingTools: Add the "Copy From Inputs" option in Mesh to Collision tool transfer existing simple geometry over to the target.
#rb Jimmy.Andrews
#jira UE-182342
#preflight 6447decb773f23812dab3c30

[CL 25183859 by semion piskarev in ue5-main branch]
2023-04-25 13:26:28 -04:00
nathan mitchell
a0dee240cb UVEditor: Enable support for UV island normalization in Layout operations.
#rb Jimmy.Andrews
#preflight 644197e6f126d87e459890db

[CL 25155917 by nathan mitchell in ue5-main branch]
2023-04-21 19:15:16 -04:00
Steve Robb
2752fb2981 Fixed mismatched copy constructor/assignment operator in UE::MeshDeformation::CotanTriangleData and UE::MeshDeformation::MeanValueTriangleData.
#rb david.hill
#jira none
#preflight none

[CL 25153491 by Steve Robb in ue5-main branch]
2023-04-21 16:56:00 -04:00
Steve Robb
15e0d5668c Fixed mismatched copy constructor/assignment operator in FMeshEdgeSelection.
#rb none
#jira none
#preflight none

[CL 25151931 by Steve Robb in ue5-main branch]
2023-04-21 15:36:23 -04:00
Steve Robb
2c53018638 Fixed mismatched copy constructor/assignment operator in FMeshSurfaceDirection.
#rb none
#jira none
#preflight none

[CL 25151837 by Steve Robb in ue5-main branch]
2023-04-21 15:32:56 -04:00
matija kecman
0dcd983404 Add Geometry Selection support to the Normals tool
This code was reviewed here https://p4-swarm.epicgames.net/reviews/25007278 but that CL was into //UE5/Main. We want the change to be into //Fortnite/Main, hence this CL

#jira UE-181649
#preflight 6442a3894944ef78926d17a3
#rb semion.piskarev, jimmy.andrews, ryan.schmidt

[CL 25150696 by matija kecman in ue5-main branch]
2023-04-21 14:49:34 -04:00
ryan schmidt
177f9e073c ModelingTools: add support for Mesh Selection to Generate Polygroups / Convert To Polygons Tool.
Base class is changed to USingleTargetWithSelectionTool.
When selection is provided, a UPreviewMesh for the unselected area is created and used.
A FSharedConstDynamicMesh3 is used to wrap either the original mesh or the selected submesh, and passed to the Operator (which also now takes a FSharedConstDynamicMesh3)
On shutdown, modified submesh is re-integrated into original mesh (in this case a trivial group copy suffices) and a new selection is emitted
#rb david.hill
#preflight 644036d1090323f9a31509d4
#jira UE-181651

[CL 25149588 by ryan schmidt in ue5-main branch]
2023-04-21 14:07:01 -04:00
Steve Robb
421ed84cdf Fixed mismatched copy constructor/assignment operator in FMeshFaceSelection and FTangentTri2.
#rb none
#jira none
#preflight none

[CL 25084773 by Steve Robb in ue5-main branch]
2023-04-18 08:56:11 -04:00
Devin Doucette
32c049c3f5 Removed some includes of Function.h in Core
#preflight 6435cf83127980724b0f16b9
#rnx

[CL 25006462 by Devin Doucette in ue5-main branch]
2023-04-12 10:05:50 -04:00
jimmy andrews
66cd067174 fix EdgeLoop.cpp calling FindEdgeFromTri with arguments in the incorrect order
#preflight 643209a07536ac6b78385552
#rb trivial

[CL 24978657 by jimmy andrews in ue5-main branch]
2023-04-10 12:08:21 -04:00
david hill
56153993ad Geometry Scripting : Geodesic Functions, add ability to trace a "straight" line on a mesh surface.
#preflight 642dbd7d4d26bcd1eb1bf94b
#rb Jimmy.Andrews

[CL 24956789 by david hill in ue5-main branch]
2023-04-06 17:02:35 -04:00
Steve Robb
5b8c9537f7 Made FMeshBakerDynamicMeshSampler explicitly non-copyable to prevent a bunch of deprecation warnings about FMeshBakerDynamicMeshSampler::DetailNormalMap from their implicit copy constructors.
Made FSceneCapturePhotoSetSampler explicitly non-copyable to prevent its special member functions being DLL-exported.

#rb none
#jira none
#preflight none

[CL 24890436 by Steve Robb in ue5-main branch]
2023-04-03 06:14:42 -04:00
matija kecman
440465a45e Fix speckles in border regions when creating textures using BakeTX tool
#jira UE-169350
#preflight 6422dd7f710ec8400fb9b138
#rb lonnie.li

[CL 24820937 by matija kecman in ue5-main branch]
2023-03-28 12:24:50 -04:00
ryan schmidt
44449e4712 GeometryProcessing: fix issue in MeshSimplification where explicitly-constrained vertices could result in collapses ignoring geometric constraint
#rb jimmy.andrews
#preflight 6422f338a86ae7cbcca71459

[CL 24820917 by ryan schmidt in ue5-main branch]
2023-03-28 12:24:01 -04:00
ryan schmidt
3880554a59 ModelingMode: preliminary support for selection transform visualization for Volumes and Static Meshes, and other minor improvements.
Add IGeometrySelectionTransformer::PreviewRender() API, for rendering info during selection transforms. Currently being called by  UGeometrySelectionManager::DebugRender() for active transforms.
FBasicDynamicMeshSelectionTransformer implements PreviewRender, draws selected mesh edges (tris as edges) and vertices, as well as affected edge ROI.
FDynamicMeshPolygroupTransformer overrides this behavior and draws polygroup edges/verts and edge ROI

FStaticMeshSelector and FVolumeSelector now create FDynamicMeshPolygroupTransformer for polygroup selections

FBasicDynamicMeshSelectionTransformer::bEnableSelectionTransformDrawing flag controls whether this edge drawing is enabled. Disabled on DynamicMeshComponent, enabled on StaticMesh and Volume.

Add Normals recomputation during tri and polygroup transforms in FBasicDynamicMeshSelectionTransformer and FDynamicMeshPolygroupTransformer

Add FGroupTopologyDeformer::EnumerateROIEdges() util function to support above

#rb none
#preflight 641cd27bc44ce895fc62f724

[CL 24780655 by ryan schmidt in ue5-main branch]
2023-03-24 12:08:43 -04:00
ryan schmidt
7ce93d296f GeometryProcessing: Handle the case where appending a triangle fails in FDynamicMeshEditor::SplitMesh(). This conceivably should never be possible, but it was observed in the wild due to a broken input FDynamicMesh3, and it's straightforward to try to handle here.
#rb jimmy.andrews
#preflight 640a295d70639dfc9462b68a

[CL 24766610 by ryan schmidt in ue5-main branch]
2023-03-23 15:19:12 -04:00
matija kecman
144f7387ab Fix texture filter kernels used in Baking Tools
#rb lonnie.li
#jira UE-179574
#preflight 64197546bb1320be4103db9d

[CL 24730282 by matija kecman in ue5-main branch]
2023-03-21 08:03:20 -04:00
Steve Robb
c341d7fc22 Added [[nodiscard]] to relevant TUniquePtr functions.
Fixed up misuses.

#rb devin.doucette
#jira none
#preflight 6413707f345ab08524938eec

[CL 24686373 by Steve Robb in ue5-main branch]
2023-03-17 07:06:23 -04:00
jimmy andrews
4d92d0a2cc fix invalid mesh state caused by not merging some neighboring edges in FDynamicMesh3's EdgeMerge, when mesh has bowties
+ add a test to cover this case

#jira UE-179649
#rb david.hill, ryan.schmidt
#preflight 640f34d20e1f02786bdf510c

[CL 24621295 by jimmy andrews in ue5-main branch]
2023-03-13 16:46:20 -04:00
rinat abdrashitov
5eef4d8a3c Fixed a static analysis error.
#rb trivial
#rnx
#preflight none

[CL 24577986 by rinat abdrashitov in ue5-main branch]
2023-03-09 12:23:38 -05:00
rinat abdrashitov
6d13803f37 -TransferBoneWeights function now uses bone attributes to re-index the skin weight bone indices when transferring between different skeletons.
-Refactored Chaos cloth transfer tool to use the new TransferBoneWeights functionality.

#rb halfdan.ingvarsson
#rb tyson.brochu
#jira none
#preflight 6408eb888c0039bbf765cd0a

[CL 24565884 by rinat abdrashitov in ue5-main branch]
2023-03-08 15:22:23 -05:00