FRaySpatialSnapSolver

[FRaySpatialSnapSolver](API\Plugins\ModelingComponents\Snapping\FRaySpatialSnapSolver) solves for a Point snap location based on an input Ray and a set of snap targets (3D points and 3D lines).

Windows
MacOS
Linux

Inheritance Hierarchy

FBasePositionSnapSolver3

FRaySpatialSnapSolver

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Snapping/RaySpatialSnapSolver.h

Include

#include "Snapping/RaySpatialSnapSolver.h"

Syntax

class FRaySpatialSnapSolver : public FBasePositionSnapSolver3

Remarks

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.

Variables

Name Description

Protected variable

TArray< FSnapTa...

 

GeneratedTargetPoints

Public variable

TFunction< FVec...

 

PointConstraintFunc

Optional function that will be used to project potential snap points onto constraints.

Constructors

Name Description

Public function

FRaySpatialSnapSolver()

Functions

Name Description

Public function

void

 

Draw

(
    FToolDataVisualizer* Renderer,
    float LineLength,
    TMap< int, FLinearColor >* Col...
)

Utility renderingVisualization of snap targets and result (if available)

Protected function

void

 

GenerateTargetPoints

(
    const FRay3d& Ray
)

Public function

void

 

UpdateSnappedPoint

(
    const FRay3d& Ray
)

SolvingSolve the snapping problem

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss