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