Commit Graph

251 Commits

Author SHA1 Message Date
David Hill
de3073fb9e GeometryCore and DynamicMesh: enable implicit type conversion warnings.
#preflight 62d9635a185da2495f443808

[CL 21201226 by David Hill in ue5-main branch]
2022-07-21 11:03:29 -04:00
David Hill
8ad44307e4 GeometryCore: Update DynamicVector so the iterator can access all the data in a very large vector. Also fix type conversion warnings.
#preflight 62d82a85110da0f944755e6d
#rb Jimmy.Andrews

[CL 21200104 by David Hill in ue5-main branch]
2022-07-21 09:32:46 -04:00
David Hill
9f5eeac1e3 Geometry: Suppress type conversion warnings in third party on clang
#preflight 62d6fdcdd54af4b9a29176a2
#rnx

[CL 21185144 by David Hill in ue5-main branch]
2022-07-20 14:04:32 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
David Hill
5cd1c6b9cb GeometryCore: FitOrientedBox3 - fixing implicit conversion warning.
#preflight none

[CL 21165693 by David Hill in ue5-main branch]
2022-07-19 15:02:31 -04:00
David Hill
3feeb2386c Geometry: fix clang warning on android with 3rd party code.
#preflight none
#rnx

[CL 21165207 by David Hill in ue5-main branch]
2022-07-19 14:27:26 -04:00
David Hill
612f70bd55 GeometryCore, GeometryProcessing: Add pragmas to suppress implicit type conversion warnings when compiling third party code.
Predicates.cpp and  xaltas.cpp

#preflight 62d6cf9d1133256db6e4624a
#rb Jimmy.Andrews

[CL 21164760 by David Hill in ue5-main branch]
2022-07-19 13:53:50 -04:00
David Hill
bd6eef7ea1 Geometry Core, Geometry Processing. Fix implicit cast warnings encountered during clang build.
GeometryCore: StairGenerator.cpp, SweepGenerator.{h,.cpp}, UVPacking.cpp, ParallelTransformReduce.h, CurvewUtil.h, SweepingMeshSDF.h FastWinding.h

GeometryProcessing:  Remesher.cpp, AdaptiveTessellate.cpp, UniformTessellate.cpp, GeometrySelectionUtil.cpp, MeshSimpleApproximation.cpp

#rb Lonnie.Li
#preflight 62d5bfa347779a730a46bc55

[CL 21161422 by David Hill in ue5-main branch]
2022-07-19 09:31:09 -04:00
Ryan Schmidt
f3812c4df5 GeometryCore: add FSegmentTree3, an AABBTree for 3D line segments. Supports finding Nearest Segment to 3D point, and FindNearestVisibleSegmentHitByRay() which raycasts into a set of boxes based on a "visibility" metric, similar to FGeometrySet3::FindNearestCurveToRay().
Modify FGeometrySet3::FindNearestCurveToRay to use a single visibility metric, instead of branches. The previous code was dependent on the order in which segments were processed, and for the purposes of 3D UI hit testing, did not seem to do any better than the current code.

Add basic tests for FSegmentTree3 queries.

#rb rinat.abdrashitov
#preflight 62d5db7547779a730a49033b

[CL 21156801 by Ryan Schmidt in ue5-main branch]
2022-07-18 21:55:20 -04:00
Jimmy Andrews
5214f714b5 Add a new FitOrientedBox3 algorithm
+ fixes to the similar Gte algorithm and to FitOrientedBox2
+ Add a Contain(Array) for TAxisAlignedBox3
+ Add option to save triangle adjacencies on computed 3D convex hull (since we already compute them)
+ Fix plane returned for degenerate convex hull result when Dimension=2
+ Let FitOrientedBox2 functions take a custom best-fit function, so that they can be used in the inner loop of FitOrientedBox3 when searching for the best-fit surface area

#rb david.hill
#preflight 62d56a783c3df32390b32263

[CL 21149570 by Jimmy Andrews in ue5-main branch]
2022-07-18 12:17:27 -04:00
matija kecman
f4900ae7a1 Render Capture Baking: Use depth capture to eliminate occlusion artefacts which can appear when baking non-convex shapes and look like weird sihouettes/blotches in the base color channel
Also removed artefacts that became visible after the ones fixible with a depth test were resolved. These were related to linearly interpolating data on the photosets, this was fixed since the baking framework is where texture filtering should take place

#rnx
#rb lonnie.li, ryan.schmidt
#jira none
#preflight 62d473b0dc4397d384a06bc8

[CL 21148985 by matija kecman in ue5-main branch]
2022-07-18 11:21:15 -04:00
Jimmy Andrews
bfe1c9e793 CIS fix: type mismatch between local functions in FitOrientedBox2.cpp
#preflight 62cefa3e127551eb254189bd

[CL 21074964 by Jimmy Andrews in ue5-main branch]
2022-07-13 13:35:58 -04:00
Jimmy Andrews
e24ae4281b Add functions to fit an oriented box2 to points, a simple polygon, or a convex hull
Add function to find a 2d convex hull of a simple polygon (faster than finding a convex hull of a point set)

#rb david.hill
#rb rinat.abdrashitov
#preflight 62cdb9a83c539c05f8145798

[CL 21070929 by Jimmy Andrews in ue5-main branch]
2022-07-13 10:39:04 -04:00
David Hill
3b8bc90d7e GeometryCore : fixing implicit conversion warnings, ParallelTransformReduce
#preflight 62cec5dd7822772758d449ed
#rb Tyson.Brochu

[CL 21070648 by David Hill in ue5-main branch]
2022-07-13 10:11:09 -04:00
Ryan Schmidt
715e1d357f GeometryCore:
Add FDynamicMesh3::EnableMatchingAttributes(), to expose AttributeSet::EnableMatchingAttributes() at the Mesh level
Add FDynamicMesh3::GetTriEdgeIDFromEdgeID(), helper to simplify construction of FMeshTriEdgeID identifiers
Add FRotator conversions for TQuaternion
Add TTransformSRT3::GetRotator()
Add UE::Geometry::Lerp variant for TFrame3
#rb rinat.abdrashitov
#preflight 62cc4a23f22e9d4fdf5da0f2

[CL 21047483 by Ryan Schmidt in ue5-main branch]
2022-07-11 17:10:51 -04:00
David Hill
769f6e10fd GeometryCore: DynamicVertex Attributes. fixing type promotion warnings.
#preflight 62c84de1e060ecd065bc8918
#rb Jimmy.Andrews

[CL 21011298 by David Hill in ue5-main branch]
2022-07-08 14:28:51 -04:00
Jimmy Andrews
f351c84a57 Add OrientedBox2 to BoxTypes.h + some test coverage
Add a TransformByTranspose to Matrix3, so we can efficiently inverse-transform when we know we have a rotation matrix

#rb david.hill
#preflight 62c7626b1c165b9e7bcf37f2

[CL 20996042 by Jimmy Andrews in ue5-main branch]
2022-07-07 19:52:15 -04:00
George Rolfe
30e1fad69d FProfileSweepGenerator per-point Scale
#jira none
#rb simion.piskarev
#rb jimmy.andrews
#preflight 62c4c49d3c5171c817cd868f

[CL 20953049 by George Rolfe in ue5-main branch]
2022-07-05 19:42:52 -04:00
Jimmy Andrews
029c3e58ca Add new exact predicate to determine whether a triangle is "facing" a direction or not. This could be used e.g. to extract a convex horizon from a convex hull.
#rb david.hill
#preflight 62c46666a6654f97290ca62c

[CL 20950995 by Jimmy Andrews in ue5-main branch]
2022-07-05 17:58:25 -04:00
mickael gilabert
eb57be5fe1 workaround internal compiler error on MSVC2019 + ASan
[REVIEW] [at]david.harvey
#rnx

#ROBOMERGE-AUTHOR: mickael.gilabert
#ROBOMERGE-SOURCE: CL 20941760 via CL 20941764 via CL 20941777 via CL 20941782 via CL 20941791
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20944392 by mickael gilabert in ue5-main branch]
2022-07-05 12:48:08 -04:00
David Hill
49abe84a1b GeometryCore, Generators. SphereGenerator and GridBoxMeshGenerator. Fixing implicit type conversion warning
#preflight 62bf31c9b44711888858cd00
#rb Jimmy.Andrews

[CL 20917414 by David Hill in ue5-main branch]
2022-07-01 13:59:42 -04:00
David Hill
51c251d1fd GeometryCore: MathUtil - adding SignAsInt(TypeT& ) function.
#preflight 62bde4d8ed35ee71a70de573
#rb Lonnie.Li

[CL 20901138 by David Hill in ue5-main branch]
2022-06-30 15:00:40 -04:00
David Hill
a23bc609a2 GeometryCore: Spatial and Implicit: fix type conversion warnings with MeshWindingNumber, CachingMeshSDF and SparseNarrowBandMeshSDF
#rb Jimmy.Andrews
#preflight 62bc6796fd062511870fdd5e

[CL 20897980 by David Hill in ue5-main branch]
2022-06-30 13:02:44 -04:00
David Hill
d5b3d39760 GeometryCore: Image. Fixing type promotion warnings, and adding a checkslow to help identify a possible overflow case.
#preflight 62bb106d1879a286b893cb66
#rb Jimmy.Andrews

[CL 20879220 by David Hill in ue5-main branch]
2022-06-29 14:22:34 -04:00
David Hill
cd43faa7b9 GeometryCore: Parameterization. MeshLocalParam and MeshDijkstra fix double to float cast warning (priority queue is sorted on floats, but distances are calculated in double)
#rb Jimmy.Andrews
#preflight 62bc6796fd062511870fdd5e

[CL 20876011 by David Hill in ue5-main branch]
2022-06-29 11:38:10 -04:00