You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Geometry Scripting : Geodesic Functions, add ability to trace a "straight" line on a mesh surface.
#preflight 642dbd7d4d26bcd1eb1bf94b #rb Jimmy.Andrews [CL 24956789 by david hill in ue5-main branch]
This commit is contained in:
+4
@@ -772,6 +772,10 @@ double FMeshGeodesicSurfaceTracer::TraceMeshFromBaryPoint(const int32 TriID, con
|
||||
|
||||
// project the ray onto the X,Y plane ( i.e. the face of the triangle )
|
||||
FVector2d ProjectedRay(FVector3d::DotProduct(XDir, RayDir3), FVector3d::DotProduct(YDir, RayDir3));
|
||||
if (!ProjectedRay.Normalize())
|
||||
{
|
||||
ProjectedRay = FVector2d::UnitX();
|
||||
}
|
||||
|
||||
// lower level code expects the 2d ray to be encoded relative to the "direction" of the first edge, edge(v0,v1)
|
||||
const int32 EID = Mesh->GetTriEdge(TriID, 0);
|
||||
|
||||
+1
-1
@@ -199,7 +199,7 @@ public:
|
||||
* in terms of barycentric coordinates, triangle references and local path direction relative
|
||||
* to a local frame (in the form of one of the edges of the triangle).
|
||||
*/
|
||||
class FMeshGeodesicSurfaceTracer
|
||||
class DYNAMICMESH_API FMeshGeodesicSurfaceTracer
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user