Choose your operating system:
Windows
macOS
Linux
| FBasePositionSnapSolver3
|
Module |
|
Header |
/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Snapping/PointPlanarSnapSolver.h |
Include |
#include "Snapping/PointPlanarSnapSolver.h" |
class FPointPlanarSnapSolver : public UE::Geometry::FBasePositionSnapSolver3
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.
Name | Description | ||
---|---|---|---|
|
bActiveSnapIsIntersection |
||
|
bEnableSnapToKnownLengths |
||
|
int |
CardinalAxisPriority |
|
|
GeneratedLines |
||
|
GeneratedTargets |
||
|
TSet< int > |
IgnoreTargets |
|
|
IntersectionPoints |
||
|
IntersectionPriorityDelta |
How much more important an intersection is than the more important of the intersecting lines. |
|
|
IntersectionSecondLine |
||
|
IntersectionSecondLinePointers |
||
|
int |
KnownLengthPriorityDelta |
How much more important a known length is than its line's priority. |
|
int |
LastSegmentPriority |
|
|
Plane |
Configuration variables |
|
|
PointHistory |
Name | Description | |
---|---|---|
|
FPointPlanarSnapSolver() |
Name | Description | ||
---|---|---|---|
|
AppendHistoryPoint ( |
||
|
DebugRender ( |
Draws the current snap targets (for debugging) |
|
|
GenerateLineIntersectionTargets() |
||
|
GenerateTargets ( |
||
|
const FLine3... |
GetIntersectionSecondLine() |
When the active snap is an intersection, holds the second intersecting line (the first can be obtained with GetActiveSnapLine()) |
|
HaveActiveSnapIntersection() |
Returns true when the active snap represents an intersection of multiple target lines in the plane. |
|
|
InsertHistoryPoint |
||
|
int |
MinInternalPriority() |
|
|
PointHistoryLength() |
||
|
RegenerateTargetLines |
Creates snap lines based on the last point in the point history. |
|
|
RegenerateTargetLinesAround |
Sets the snapping lines to be based on the history points adjacent to the point with a given history index. |
|
|
RemoveHistoryPoint ( |
||
|
ResetGenerated() |
Clears any existing generated snap targets. |
|
|
UpdatePointHistory |
Point history manipulation functions. All of them remove the currently generated snap |
|
|
UpdatePointHistory |
Point history manipulation functions. All of them remove the currently generated snap |
|
|
UpdateSnappedPoint ( |
Name |
Description |
---|---|
CardinalAxisTargetID |
|
IntersectionTargetID |
|
LastSegmentTargetID |