FPointPlanarSnapSolver

[FPointPlanarSnapSolver](API\Plugins\ModelingComponents\Snapping\FPointPlanarSnapSolver) solves for a Point snap location on a plane, based on an input Point and a set of target points and lines in the plane.

Windows
MacOS
Linux

Inheritance Hierarchy

FBasePositionSnapSolver3

FPointPlanarSnapSolver

References

Module

ModelingComponents

Header

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

Include

#include "Snapping/PointPlanarSnapSolver.h"

Syntax

class FPointPlanarSnapSolver : public FBasePositionSnapSolver3

Remarks

FPointPlanarSnapSolver solves for a Point snap location on a plane, based on an input Point and a set of target points and lines in the plane.

This implementation has the notion of a "history" of previous points, from which line and distance constraints can be inferred. This is useful for snapping in 2D polygon drawing.

See FBasePositionSnapSolver3 for details on how to set up the snap problem and get results.

Variables

Name Description

Public variable

bool

 

bEnableSnapToKnownLengths

Public variable

int

 

CardinalAxisPriority

Protected variable

TArray< FSnapTa...

 

GeneratedLines

Protected variable

TArray< FSnapTa...

 

GeneratedTargets

Protected variable

TSet< int >

 

IgnoreTargets

Public variable

int

 

KnownLengthPriorityDelta

Public variable

int

 

LastSegmentPriority

Public variable

FFrame3d

 

Plane

Configuration variables

Protected variable

TArray< FVector...

 

PointHistory

Constructors

Name Description

Public function

FPointPlanarSnapSolver()

Functions

Name Description

Protected function

void

 

GenerateTargets

(
    const FVector3d& PointIn
)

Public function Const

int

 

MinInternalPriority()

Public function

void

 

RegenerateTargetLines

(
    bool bCardinalAxes,
    bool bLastHistorySegment
)

Public function

void

 

UpdatePointHistory

(
    const TArray< FVector3d >& Points
)

Public function

void

 

UpdatePointHistory

(
    const TArray< FVector >& Points
)

Public function

void

 

UpdateSnappedPoint

(
    const FVector3d& PointIn
)

Overridden from FBasePositionSnapSolver3

Name Description

Public function Virtual

void

 

Reset()

Discard the set of snap points and lines and clear the active snap

Public function Virtual

void

 

ResetActiveSnap()

Clear the active snap

Constants

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