You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
39 lines
932 B
C++
39 lines
932 B
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Snapping/BasePositionSnapSolver3.h"
|
|
|
|
class FToolDataVisualizer;
|
|
|
|
/**
|
|
* FRaySpatialSnapSolver solves for a Point snap location based on an input Ray
|
|
* and a set of snap targets (3D points and 3D lines).
|
|
*
|
|
* See FBasePositionSnapSolver3 for details on how to set up the snap problem
|
|
* and get results.
|
|
*/
|
|
class MODELINGCOMPONENTS_API FRaySpatialSnapSolver : public FBasePositionSnapSolver3
|
|
{
|
|
public:
|
|
FRaySpatialSnapSolver();
|
|
|
|
//
|
|
// solving
|
|
//
|
|
|
|
/** Solve the snapping problem */
|
|
void UpdateSnappedPoint(const FRay3d& Ray);
|
|
|
|
//
|
|
// Utility rendering
|
|
//
|
|
|
|
/** Visualization of snap targets and result (if available) */
|
|
void Draw(FToolDataVisualizer* Renderer, float LineLength, TMap<int,FLinearColor>* ColorMap = nullptr);
|
|
|
|
protected:
|
|
|
|
TArray<FSnapTargetPoint> GeneratedTargetPoints;
|
|
void GenerateTargetPoints(const FRay3d& Ray);
|
|
}; |