122 Commits

Author SHA1 Message Date
jimmy andrews
cc894123d6 fix some edges/vertices not moving when via mesh elements selection handles due to incorrect bounds check in deformer
#rb david.hill

[CL 32484838 by jimmy andrews in 5.4 branch]
2024-03-25 17:06:07 -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
d6f2603bef fix issue where in rare cases bevel can fail to set correct matching new edges/vertices
#jira UE-202875
#rb rinat.abdrashitov

[CL 31308760 by jimmy andrews in 5.4 branch]
2024-02-08 17:48:12 -05:00
david hill
027dcc782f Geometry Processing: Make simple intrinsic triangulation mesh robust to misoriented triangles.
#jira UE-203213
#rb Jimmy.Andrews

[CL 31257145 by david hill in 5.4 branch]
2024-02-07 10:08:14 -05:00
jimmy andrews
b88fe4279e fix smooth bevel of loops for cases where the loop's edges are reversed from the expected order
#rb David.Hill
#jira UE-205063

[CL 31142709 by jimmy andrews in 5.4 branch]
2024-02-02 16:58:07 -05:00
jimmy andrews
1664ef919b Fix crash on smooth bevel of some edges
#jira UE-205048
#rb tyson.brochu

[CL 31098073 by jimmy andrews in 5.4 branch]
2024-02-01 14:55:30 -05:00
rinat abdrashitov
1d33bcc942 Add an option to the ChaosCloth TransferSkinWeights node that allows to choose the max number of bone influences per vertex.
Propagate this change to the TransferBoneWeights and SmoothBoneWeights geometry operators by allowing to manually specify the max number of influences per bone for the output per-vertex weights.

#rb halfdan.ingvarsson, kriss.gossart
#jira UE-184186
#rnx

[CL 31024718 by rinat abdrashitov in 5.4 branch]
2024-01-30 17:43:54 -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
ryan schmidt
2c11bfc349 Mesh Bevel: remove ensures that are getting hit in some cases in Lyra. Failure is not catastrophic, so we do not really need to ensure here.
[CL 30399602 by ryan schmidt in ue5-main branch]
2023-12-19 13:48:50 -05:00
ryan schmidt
08a4212d9b fix various issues with mesh bevel. Boundary-condition normals are now computed before any meshing. DisplaceVertices() now tries to keep terminator vertex positions on existing mesh edges (this should be improved to stay on group edges, in most cases a group edge can be selected topologically, but for now just snapping to mesh edges to handle the simple lowpoly-boxy cases). Simplify/improve computation of section planes in ApplyProfileShape_Round() - in all cases except corners, the section plane is well-defined by the two inset edge points and the original vertex position. This allowed removal of PlanarizeArcNormals function. Also now handling flipped orientation of quad patch relative to edge vertex sequence.
Added more error handling inFQuadGridPatch::InitializeFromQuadPatch. Fixed property invalidating in PolyEdit bevel activity.

[CL 30356938 by ryan schmidt in ue5-main branch]
2023-12-15 14:57:40 -05:00
ryan schmidt
58c4571ebf fix Mac-specific build issue
[CL 30281057 by ryan schmidt in ue5-main branch]
2023-12-12 18:09:03 -05:00
ryan schmidt
a86e132008 Add support for multi-segment bevels with optional round profile in MeshBevel. The new code path is completely separated from the previous code. Works OK but handling of valence-3 bevel corners (filled with a rounded triangle) could be improved.
Expose in Geometry Script and PolyEdit functions.

[CL 30280525 by ryan schmidt in ue5-main branch]
2023-12-12 17:55:33 -05:00
jimmy andrews
72f8004de6 CIS fix for static analyzer warning in DetectExteriorVisibility.cpp (1/3 should be 1.0/3.0)
#rb jimmy.andrews

[CL 30063776 by jimmy andrews in ue5-main branch]
2023-12-01 20:26:42 -05:00
jimmy andrews
76c9580c1e Add support for transparent meshes/faces in detect exterior visibility algorithm + associated geometry script function.
Also improve behavior (+ add control of behavior) for meshes with degenerate triangles, so meshes with degenerate triangles will not always be treated as visible.

#rb david.hill

[CL 30051521 by jimmy andrews in ue5-main branch]
2023-12-01 15:37:09 -05:00
jimmy andrews
92b2f038c9 Expose exterior visibility algorithm in GeometryProcessing DynamicMesh module, and use it to add an operation to determine which mesh instances are fully occluded. Also add this operation as a new Geometry Script function.
#rb matija.kecman

[CL 29721084 by jimmy andrews in ue5-main branch]
2023-11-14 14:34:03 -05:00
semion piskarev
352fd18a4d MeshModelingTools: Fix group edges not being properly scalable (only the endpoints moved properly before).
#rb Jimmy.Andrews
#jira UE-197963

[CL 28778866 by semion piskarev in ue5-main branch]
2023-10-13 19:15:11 -04:00
jimmy andrews
77b35bc5d2 Make more collision geometry types support Min Thickness in the Mesh to Collision tool + Make the tool disable the slider for shapes that don't support it (Convex Decomp and Level Sets)
Add Min Thickness support to the Mesh Convex Hull class

#jira UE-197623
#rb david.hill

[CL 28717587 by jimmy andrews in ue5-main branch]
2023-10-12 13:34:51 -04:00
rinat abdrashitov
4ccfed2a3d Fixed a bug where overlay normals were used instead of the per-vertex normals.
#rb david.hill
#rnx

[CL 26743550 by rinat abdrashitov in ue5-main branch]
2023-08-01 12:45:38 -04:00
rinat abdrashitov
ac8014e909 Added ability to specify force inpaint mask via weight map name in addition to just plain array.
#rb jimmy.andrews
#rnx

[CL 26583207 by rinat abdrashitov in ue5-main branch]
2023-07-25 14:34:41 -04:00
avudnez
f9797f7199 PR #10645: Fix extra parentheses compilation warning with clang-cl
#jira UE-190329
#rb matija.kecman

[CL 26546845 by avudnez in ue5-main branch]
2023-07-24 12:27:01 -04:00
jimmy andrews
02a0a370eb add variant of mesh projection hull that keeps 3d hull on one side of the projection
#rb rinat.abdrashitov

[CL 26469457 by jimmy andrews in ue5-main branch]
2023-07-19 16:20:22 -04:00
alex mcadams
66a4546e14 Chaos Cloth Asset: TransferBoneWeights bugfixes.
* Fail gracefully if you don't have any initial matches when doing Inpaint Weights.
* Fix ClothPatternToDynamicMesh to actually populate the NonManifoldMapping data.

#rb rinat.abdrashitov

[CL 26249234 by alex mcadams in ue5-main branch]
2023-06-26 19:49:31 -04:00
rinat abdrashitov
4ef78ca57e -Added an operator for smoothing overlays of any dimension containing any scalar data
-Added a function for computing per-edge cotangent weights
-Added a function for computing edge lengths
-Added a geometry script function for bluring colors

#rb david.hill
#jira none

[CL 26029009 by rinat abdrashitov in ue5-main branch]
2023-06-15 18:19:32 -04:00
rinat abdrashitov
7f43547bc2 Added an operation to compute per-vertex averaged value of all overlay elements.
#rb david.hill
#jira none

[CL 26022763 by rinat abdrashitov in ue5-main branch]
2023-06-15 15:18:03 -04:00
rinat abdrashitov
420dc7a32c -Add optional smoothing of weights after transfer.
-Add support for multulayerd meshes.
-Add an option to compute the laplacian on intrisic mesh.
-Add a mask to force computation of inpainted weights.
-Add the laplacian energy term.
-Improved peformance by getting the sparse matrix from the solve and then iterating over all (most zero) values.


#rb halfdan.ingvarsson
#rnx
#jira none

[CL 26019677 by rinat abdrashitov in ue5-main branch]
2023-06-15 13:48:31 -04:00