Navigation
API > API/Plugins > API/Plugins/ModelingComponents
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.
| Name | FRaySpatialSnapSolver |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Snapping/RaySpatialSnapSolver.h |
| Include Path | #include "Snapping/RaySpatialSnapSolver.h" |
Syntax
class FRaySpatialSnapSolver : public UE::Geometry::FBasePositionSnapSolver3
Inheritance Hierarchy
- FBasePositionSnapSolver3 → FRaySpatialSnapSolver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRaySpatialSnapSolver() |
Snapping/RaySpatialSnapSolver.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PointConstraintFunc | TFunction< FVector3d(const FVector3d &)> | Optional function that will be used to project potential snap points onto constraints. | Snapping/RaySpatialSnapSolver.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Draw
(
FToolDataVisualizer* Renderer, |
Utility rendering Visualization of snap targets and result (if available) | Snapping/RaySpatialSnapSolver.h | |
void UpdateSnappedPoint
(
const FRay3d& Ray |
Solving Solve the snapping problem | Snapping/RaySpatialSnapSolver.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GenerateTargetPoints
(
const FRay3d& Ray |
Snapping/RaySpatialSnapSolver.h |