454 Commits

Author SHA1 Message Date
Wojciech Krywult
d271c828b9 SDK (1): Changes in common code needed to support SDK changes on some platforms
#jira UE-210757
#rb
#tests Integrated //UE5/Partner-Latte-5.4/... @32408657 (the last non-robomerge change)

[CL 32557111 by Wojciech Krywult in 5.4 branch]
2024-03-27 16:55:10 -04:00
jimmy andrews
32fdb471b8 fix unreachable implicit "++iterator" in cases where a for-loop was used to just grab the first element of a set or map
#rb lonnie.li
#lockdown michael.balzer

[CL 31877332 by jimmy andrews in 5.4 branch]
2024-02-28 13:34:31 -05:00
jimmy andrews
78e5fa1152 edigration of new convexity-based clustering options for autocluster (fracture mode + dataflow) + supporting changes to convex decomposition algorithm (CLs: 31244638 31457281 31486473 31487152 31486751 31495302 31534444 31638029 31495973)
#rb cedric.caillaud

[CL 31780158 by jimmy andrews in 5.4 branch]
2024-02-23 17:24:11 -05:00
jimmy andrews
7243a7f747 remove older deprecated code from GeometryCore (FTransformSRT3's Inverse and legacy ExactPredicates methods)
#rb jimmy.andrews

[CL 31496650 by jimmy andrews in 5.4 branch]
2024-02-14 17:39:32 -05:00
jimmy andrews
9b72b6ccbd fix incorrect invalid-ID check in SplitInteriorVertexTrianglesIntoSubsets (to fix crash in bevel code)
#jira UE-206344
#rb David.Hill

[CL 31357242 by jimmy andrews in 5.4 branch]
2024-02-09 16:50:40 -05:00
jimmy andrews
367ec7c905 use a prime value greater than max unsigned int for the modulo iteration in remesher, mesh simplification, and FModuloIteration to ensure that it is always coprime with the number of elements being iterated over
#rb Brian.Karis

#changelist validated
#virtualized

[CL 31230169 by jimmy andrews in 5.4 branch]
2024-02-06 16:23:49 -05:00
jimmy andrews
9956d3a0f9 Fix convex hull vs sphere test for convex decomposition, and track/exclude degenerate planes from the test
#rb rinat.abdrashitov

[CL 31076073 by jimmy andrews in 5.4 branch]
2024-01-31 19:56:01 -05:00
jimmy andrews
b60e28bc66 fix bug in convex decomposition proximity graph updates on split
#rb David.Hill

[CL 31031941 by jimmy andrews in 5.4 branch]
2024-01-30 19:42:59 -05:00
jimmy andrews
677a0e60e4 fix race condition in sparse dynamic point octree sampling method
#jira UE-201757

#rb David.Hill

[CL 31030453 by jimmy andrews in 5.4 branch]
2024-01-30 19:23:17 -05:00
jimmy andrews
16d90585aa fix convex hull failure case when tolerances are used to discard points, and the best point has a reported plane distance less than zero due to floating point error (but the exact test has reported that the point is on the correct side of the plane)
#rb David.Hill

[CL 30946487 by jimmy andrews in 5.4 branch]
2024-01-26 18:07:03 -05:00
steve robb
57ca754749 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30894744 by steve robb in 5.4 branch]
2024-01-25 14:17:31 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
steve robb
f70478d4f0 Moved some bool-taking container wrappers over to using EAllowShrinking.
FGraphAStar::PopIndex() isn't passing on its argument to the container - that existing behavior has been retained.

#rb james.hopkin
[FYI] Yoan.StAmant

[CL 30712410 by steve robb in ue5-main branch]
2024-01-19 05:12:44 -05:00
marc audy
19e84555b3 Silence PVS warnings
[CL 30653812 by marc audy in ue5-main branch]
2024-01-17 01:34:02 -05:00
frederic doll
74e9aa89e7 Add way to retrieve the real allocated memory size of a Point Provider Cluster
#rb sarah.noonan
[FYI] karl.dubois

[CL 30579508 by frederic doll in ue5-main branch]
2024-01-11 16:57:26 -05:00
marc audy
26e65d08c3 Silence PVS warnings
[CL 30538540 by marc audy in ue5-main branch]
2024-01-10 11:38:07 -05:00
jimmy andrews
143832d436 Add support for inverting Transform Sequences, appending inverses of transforms to Transform Sequences, and for testing if a TTransformSRT3 can represent its own inverse (to help efficiently represent Transform Sequence inverses)
#rb tyson.brochu

[CL 30354915 by jimmy andrews in ue5-main branch]
2023-12-15 13:56:09 -05:00
jimmy andrews
ebc890fa52 Update TQuaternion::EpsilonEqual to account for the Quaternion == -Quaternion case, and add an IsIdentity() method
#rb David.Hill

[CL 30328545 by jimmy andrews in ue5-main branch]
2023-12-14 14:47:41 -05:00
frederic doll
1812dc98a3 Add Douglas Peucker simplification algorithm to TPolyline
#rb Jimmy.Andrews

[CL 30299715 by frederic doll in ue5-main branch]
2023-12-13 14:24:10 -05:00
tyson brochu
70590a4eaa FDynamicMesh: add a CanCollapseEdge function to check if an edge collapse might fail before actually trying it
#jira UE-174510
#rb Jimmy.Andrews

[CL 30220298 by tyson brochu in ue5-main branch]
2023-12-08 16:58:02 -05:00
jimmy andrews
1fb821235a make negative space sampling default to 'deterministic' mode, and make that mode sort the vertices after marching cubes has run rather than disabling parallelism during marching cubes.
also always run the point prioritization step, and don't early-stop it if we may take more samples than the minimum requested.
#rb rinat.abdrashitov

[CL 30169822 by jimmy andrews in ue5-main branch]
2023-12-06 17:30:20 -05:00
jimmy andrews
38de04a6ad remove redundant init of negative space mapping in convex decomposition on Compute(), since it is already initialized by the function which adds it
#rb tyson.brochu

[CL 30166840 by jimmy andrews in ue5-main branch]
2023-12-06 15:51:04 -05:00
ryan schmidt
d205e117bb GeometryProcessing: various utility functions to assist with rounded bevels implementation
- add 2D version of VectorTanHalfAngle to VectorUtil.h
- add FDynamicMeshUVEditor::SetToPerVertexUVs, initializes overlay to have a single UV for each vertex
- add FQuadGridPatch::InitializeFromQuadPatch(), initializes the quad grid from external rows of quads and associated vertices
- add FQuadGridPatch::GetVertexColumn(), returns the list of vertices in a specific grid column
- add FQuadGridPatch::FindColumnIndex(), finds the index of the grid column that contains a specific Vertex ID
#rb rinat.abdrashitov

[CL 30166232 by ryan schmidt in ue5-main branch]
2023-12-06 15:32:17 -05:00
jimmy andrews
bca502e8cd Fix convex decomposition's min sample spacing test to run after finding the final sample location, rather than running on the initial estimate location, so it will function as intended when the samples are placed far from their initial estimate locations.
#rb rinat.abdrashitov

[CL 30053523 by jimmy andrews in ue5-main branch]
2023-12-01 16:17:39 -05:00
jimmy andrews
709a94dbbd Add a method to remove unused vertices from a dynamic mesh, and expose it to geometry script
#rb tyson.brochu

[CL 30048365 by jimmy andrews in ue5-main branch]
2023-12-01 14:14:28 -05:00