Commit Graph

344 Commits

Author SHA1 Message Date
jimmy andrews
2fd406c6fa make fbox/fbox2D conversion to/from geometrycore AABB types correctly handle the FBox IsValid flag
#rb david.hill, ryan.schmidt
#preflight 642b39aef376ab43d22dcfa5

[CL 24906551 by jimmy andrews in ue5-main branch]
2023-04-03 23:32:09 -04:00
matija kecman
4ba561a21f Fix an incorrect filter kernel and remove the corresponding test which was causing the Geometry Processing Tests target to fail
#jira UE-181164
#preflight 642419a8e11ce5214f75dd4e
#rb michael.balzer,jimmy.andrews

[CL 24835070 by matija kecman in ue5-main branch]
2023-03-29 09:40:52 -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
nick edwards
442653b187 Uses of ::Sort/::StableSort replaced with Algo versions.
#preflight 6422f8d3710ec8400fc7471c
#jira none
#rb steve.robb

[CL 24818983 by nick edwards in ue5-main branch]
2023-03-28 10:56:46 -04:00
nick edwards
56ab78de50 Fix C++20 compile error. Make TPolygon2::SegmentIterator's comparison operators const to address ambiguity issues.
#preflight 6419889213231a2826751706
#jira none
#rb none

[CL 24730339 by nick edwards in ue5-main branch]
2023-03-21 08:14:15 -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
nick edwards
56db4f0d3a Fix C++20 compile error. Add const to TDynamicVector comparison operators to resolve function ambiguiity with reversed arguments.
#preflight 6418820c345ab08524bb30c9
#rb none
#jira none

[CL 24719516 by nick edwards in ue5-main branch]
2023-03-20 13:35:37 -04:00
benoit gadreau
999742b18e GeometryCore: added FindAllHitTriangles function to get all triangles intersected by a ray (not just the closest one)
#jira none
#rb ryan.schmidt
#preflight 640f0f7baf3fc35292af00ac

[CL 24713655 by benoit gadreau in ue5-main branch]
2023-03-20 05:11:49 -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
Joe Kirchoff
109addf6a3 Cpp20 doesn't allow implicit capture of 'this' via '[=]'
#rb Francis.Hurteau
#preflight 64068c936e1dadfcda41bb82

[CL 24548358 by Joe Kirchoff in ue5-main branch]
2023-03-07 16:49:18 -05:00
jimmy andrews
94621fd27d Expose Delaunay Triangulation to Geometry Script
#rb ryan.schmidt, rinat.abdrashitov, matija.kecman
#preflight 64064a28c13b7130d2fd04da

[CL 24531512 by jimmy andrews in ue5-main branch]
2023-03-06 17:00:31 -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
jimmy andrews
c7f6bf2739 Add a relatively fast heuristic Merge() function, to combine two OrientedBox3s
The orientation of the merged box will be the lowest-volume choice of the two input box orientations, or a heuristically-oriented box.  The heuristic orientation will be either (A) an interpolation of the orientations, if the boxes are close together, or (B) a box lined up with the line connecting the two box origins, if the boxes are far apart (relative to their extents).

#rb rinat.abdrashitov
#preflight 64003611ef1b24bf94e72098

[CL 24484954 by jimmy andrews in ue5-main branch]
2023-03-02 12:44:08 -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
rinat abdrashitov
13a3f391cb Reverting the accidental removal of the fix for CheckBoneValidty()
#rb trivial
#preflight 63fe1fb3c63aaf1e1368707b

[CL 24450167 by rinat abdrashitov in ue5-main branch]
2023-02-28 15:45:44 -05:00
rinat abdrashitov
86f75d8c02 Fix static analysis error.
#rb trivial
#preflight 63fd74f3dd78dd50f6cfe048

[CL 24438973 by rinat abdrashitov in ue5-main branch]
2023-02-28 00:24:00 -05:00
jimmy andrews
999722e77c fix validity check for boneless meshes
(fixes geometry processing unit tests)

#rb rinat.abdrashitov
#preflight 63fd49692b1a2765f9a994aa

[CL 24437945 by jimmy andrews in ue5-main branch]
2023-02-27 22:36:45 -05:00
rinat abdrashitov
ff5c6e3d72 Added a new class to store per-bone data.
Added bone attributes (name, color, parent index, pose) to the dynamic mesh attribute set.

#rb halfdan.ingvarsson
#rb ryan.schmidt
#preflight 63fcd62dc35a141980f8429f

[CL 24432083 by rinat abdrashitov in ue5-main branch]
2023-02-27 16:20:20 -05:00
jimmy andrews
3a53d123a9 remove deprecated timestamp concept and fix const correctness for geometrycore curve and point set classes
#rb rinat.abdrashitov
#preflight 63f63ef7b91d7b0a12b9c945

[CL 24370918 by jimmy andrews in ue5-main branch]
2023-02-22 17:27:21 -05:00
jimmy andrews
d6daff005b Make mesh elements visualizer distinguish between normal and tangent seams like the mesh inspector does
#rb david.hill
#preflight 63ee4e7d500c05a6244b020b

[CL 24270353 by jimmy andrews in ue5-main branch]
2023-02-16 17:39:45 -05:00
christopher waters
f0b834540e Cleaning up a number of direct module includes.
[CL 24253328 by christopher waters in ue5-main branch]
2023-02-16 04:13:28 -05:00
jimmy andrews
08cdafff34 add a merge-only api to convex decomposition
#preflight 63d9872265738ba951f5058e
#rb david.hill

[CL 23943754 by jimmy andrews in ue5-main branch]
2023-01-31 21:58:48 -05:00
Steve Robb
4d8666500d Removed remaining TIsSame usage.
#rb none
#jira none
#preflight 63c74fcb0b358b97d1cf7160

[CL 23753013 by Steve Robb in ue5-main branch]
2023-01-18 04:53:21 -05:00