Commit Graph

248 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
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
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
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
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
rinat abdrashitov
a3fd902926 -DynamicMeshEditor.cpp: Handle bone data when appending two meshes and use it to reindex the the combined skinning weights.
-DynamicMeshAttributeSet.cpp:  Fixed a bug where we were resetting the bone attributes when matching.
-DynamicVertexSkinWeightsAttribute.h: Added a function that allows to reindex bone indices with respect to a new skeleton.
-SkeletalMeshLODModle.cpp: Handle bone attributes when FSkeletalMeshLODModel::GetMeshDescription is called.

#rb halfdan.ingvarsson
#preflight 640150b91d304a54717f810c

[CL 24523731 by rinat abdrashitov in ue5-main branch]
2023-03-06 11:22:59 -05:00
matija kecman
a5329ddfbb Fix computation of edge collapse lerp parameter to fix (for example) artefacts in the UV layer when remeshing the stairs primitive
#jira UE-141937
#preflight 64008a1bc63aaf1e13565ace
#rb ryan.schmidt,david.hill

[CL 24499685 by matija kecman in ue5-main branch]
2023-03-03 11:21:38 -05:00
tyson brochu
0a9de87960 Hole Fill Tool:
- change the smoothing weight scheme to IDT Cotangent
- re-check for mesh seams to constrain between iterations of remeshing

#rb jimmy.andrews
#preflight 63ffa7cc30633435f83e9200

[CL 24474295 by tyson brochu in ue5-main branch]
2023-03-01 19:19:34 -05:00
rinat abdrashitov
b98febe1fd Remove checkSlow(false) when encountering a numerical issue since it's valid for those cases to be reached and we return the Numerical Failure flag.
Otherwise, this also causes geometry processing unit tests to fail when testing for numerical failures where invalid matrices are supplied.


#rb trivial
#preflight 63fe7a5cdd78dd50f626fbd1
#rnx

[CL 24455832 by rinat abdrashitov in ue5-main branch]
2023-02-28 20:02:02 -05:00
ryan schmidt
c49fc562ad CombineMeshInstance: add support for combining simple collision and simple box-merging strategy to combine collision shapes.
GeometryCore: Make TAxisAlignedBox3::DistanceSquared const (should have been). Add TQuaternion * scalar and operator+ functions. Add TTransformSRT3::GetScale3D for API compatibility with engine FTransform
Add FSimpleShapeSet3d::Append() variant that takes a FTransformSequence3d
#rb rinat.abdrashitov
#preflight 63fe7971437ce3e7f3b51c8a

[CL 24454963 by ryan schmidt in ue5-main branch]
2023-02-28 19:00:45 -05:00
jimmy andrews
8c1fc919a2 Add PolyGroupID option to the Bake Textures and Bake Vertex Colors tools
#rb lonnie.li
#preflight 63fe754eef1b24bf9431ef91

[CL 24454581 by jimmy andrews in ue5-main branch]
2023-02-28 18:39:53 -05:00