537 Commits

Author SHA1 Message Date
jimmy andrews
ba93f6dd4f fix out of order lines in fix for sampling hanging on degenerate triangles
#jira UE-227226
#rb David.Hill

[CL 37026687 by jimmy andrews in 5.5 branch]
2024-10-10 13:26:55 -04:00
jimmy andrews
803749059a Prevent mesh surface point sampling hanging on degenerate triangles, by switching to non-rejection-sampling in that case. (Leave rejection sampling as-is for all other cases, to preserve exact same sampling behavior otherwise)
#jira UE-227226
#rb David.Hill

[CL 37021854 by jimmy andrews in 5.5 branch]
2024-10-10 11:32:51 -04:00
jimmy andrews
345a810cce fix handling of invalid triangles in mesh aabb tree -- do not leave uninitialized memory at the end of the triangles list, and pass only the count of valid triangles to the build method
#jira UE-227199
#rb David.Hill

[CL 37021102 by jimmy andrews in 5.5 branch]
2024-10-10 11:08:51 -04:00
jimmy andrews
71f91aa4a4 add optional thickening/inflate parameter to FitKDOP3, and set default to .1, to match previous KDOP fitting behavior and guarantee that flat shapes still generate valid KDOPs.
This fixes an ensure and collision generation failure on asset import.

#jira UE-224367
#rb David.Hill

[CL 36982115 by jimmy andrews in 5.5 branch]
2024-10-09 11:34:37 -04:00
jimmy andrews
22f1321ac0 fix grid size overflowing int for convex hull and convex decomposition methods
#jira UE-227034
#jira UE-227029
#rb tyson.brochu

[CL 36948662 by jimmy andrews in 5.5 branch]
2024-10-08 17:54:38 -04:00
jimmy andrews
9e94ecec51 fix AppendMesh nodes inconsistently handling transforms with negative scales
#jira UE-196872
#rb lonnie.li

[CL 36761358 by jimmy andrews in 5.5 branch]
2024-10-01 20:06:11 -04:00
jimmy andrews
38b03ce012 make polygon selection mechanic translate compacted edge selections for output
#jira UE-225055
#rb David.Hill

[CL 36755949 by jimmy andrews in 5.5 branch]
2024-10-01 19:12:13 -04:00
jimmy andrews
583c4a50f3 serialize the bones in dynamic mesh attribute sets
#jira UE-202248
#lockdown marc.audy
#rb Marc.Audy, tyson.brochu

[CL 36754833 by jimmy andrews in 5.5 branch]
2024-10-01 19:02:45 -04:00
kiaran ritchie
b293d1129d Skin weight tool: Fixes crash stemming from CleanMesh operation due to invalid non-manifold vertex mapping
Also fixes issue where material assignment can be scrambled after exiting the tool.

#rb halfdan.ingvarsson
#JIRA UE-224313, UE-223602
#swarm https://p4-swarm.epicgames.net/reviews/36490505

[CL 36753585 by kiaran ritchie in 5.5 branch]
2024-10-01 18:51:55 -04:00
jimmy andrews
78c65dadf1 fix 2D voronoi diagram generation failing collinear inputs
+ add a result enum to delaunay triangulation so we can know the reason for triangulation failures

#jira UE-224295
#rb David.Hill

[CL 36753394 by jimmy andrews in 5.5 branch]
2024-10-01 18:50:21 -04:00
halfdan ingvarsson
df166cdbe7 Geoscripting: Add an option to reconstruct non-manifold meshes
#rb David.Hill

[CL 36212041 by halfdan ingvarsson in 5.5 branch]
2024-09-11 17:57:34 -04:00
Ryan Hummer
4af2fd066d Updating Dev-Release-5.5 from Main at CL #36144969
#okforversepublic

[CL 36146571 by Ryan Hummer in Dev-5.5 branch]
2024-09-10 10:26:02 -04:00
jimmy andrews
12ad02fdcc clarify comment in mesh selection growth/contraction methods -- they need to iterate the entire selection, not the entire mesh
#rb tyson.brochu

[CL 36016675 by jimmy andrews in ue5-main branch]
2024-09-04 13:43:21 -04:00
semion piskarev
bfeabdbcd0 Geometry: Added 2d triangle circle intersection utility. Fixed 2d triangle IsInsideOrOn function to properly handle degenerate cases and to have tolerance. Added 2d segment IsOnSegment function and GetSide function that handles tolerance properly. Added unit tests.
#rb David.Hill, Jimmy.Andrews

[CL 35837523 by semion piskarev in ue5-main branch]
2024-08-27 16:55:01 -04:00
henrik karlsson
277f0cf7fa Removed dllexported template instantiations when building with merged modules. Reason is because some of the console platform compilers don't handle this properly.
[CL 35832838 by henrik karlsson in ue5-main branch]
2024-08-27 14:41:00 -04:00
michael balzer
91ed08af06 DynamicMesh: Fix static analysis warning during DynamicVertexSkinWeightsAttributes serialization
[CL 35827685 by michael balzer in ue5-main branch]
2024-08-27 11:57:22 -04:00
semion piskarev
2626879753 DynamicMesh: Allow more permissive options for edge collapse.
#rb Jimmy.Andrews

[CL 35806890 by semion piskarev in ue5-main branch]
2024-08-26 15:15:52 -04:00
jimmy andrews
a8ca7e826b add a details string to the mesh difference info struct, so we can report more specific information about differences when it's useful to do so (e.g., the triangle counts for both meshes, if the triangle count was what differed)
#rb David.Hill
#jira UE-178598

[CL 35773605 by jimmy andrews in ue5-main branch]
2024-08-23 12:20:27 -04:00
nicoell-threedy
985117c857 PR #12231: Fix compile error C4800 in SpatialDatastructure PointHashGrid2 and PointHashGrid3
#rb David.Hill
#jira UE-221975

#ushell-cherrypick of 35588943 by UnrealBot

[CL 35751494 by nicoell-threedy in ue5-main branch]
2024-08-22 15:27:16 -04:00
pramanc
9de2fdbc63 PR #12239: Update DynamicMeshTriangleAttribute.h for borderEdge bug
#rb David.Hill
#jira UE-222094

#ushell-cherrypick of 35614864 by UnrealBot

[CL 35751474 by pramanc in ue5-main branch]
2024-08-22 15:27:00 -04:00
jimmy andrews
6f067213bc make dynamic mesh IsSameAs method also report the kind of difference it found (if any) and the mesh element that was different (if applicable)
+ similarly change the equivalent geometry script method

#jira UE-178598
#rb David.Hill

[CL 35747815 by jimmy andrews in ue5-main branch]
2024-08-22 13:46:41 -04:00
henrik karlsson
78ba369d2c Fixed linker errors on some console platform when building modular builds. Fixes involves moving ctor/dtor and friends from header to cpp and dll import/export
[CL 35710553 by henrik karlsson in ue5-main branch]
2024-08-21 13:44:16 -04:00
david hill
2548a0ca06 Dynamic Mesh - fix an algorithmic comment
#rb Jimmy.Andrews

[CL 35661985 by david hill in ue5-main branch]
2024-08-20 14:06:38 -04:00
nick edwards
4ff5a8e33b [Build Health] TDynamicMeshOverlay, TDynamicMeshVectorOverlay & TDynamicMeshAttributeChange: Add missing explicit instantiation declarations and add appropriate dllapi for them. Addresses "attribute 'dllexport' cannot be applied to member of 'dllexport' class" error.
[FYI] henrik.karlsson

[CL 35593737 by nick edwards in ue5-main branch]
2024-08-16 10:15:40 -04:00
henrik karlsson
2dc722078e [Engine]
* Moved dllapi from types to functions/static vars
* Changed so extern template instantiation is based on clang or not instead of if linux and mac since we also build windows using clang
* Added dllapi on some member functions inside template types where the code is in the cpp file. This is needed to tell the compiler these functions will be dll exported (clang does not accept only adding it on the instantiation

[CL 35586891 by henrik karlsson in ue5-main branch]
2024-08-15 23:55:51 -04:00