UCurveControlPointsMechanic::FOrderedPoints::InsertPointAt

Inserts a point with the given coordinates at the given position in the sequence.

Choose your operating system:

Windows

macOS

Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/CurveControlPointsMechanic.h

Include

#include "Mechanics/CurveControlPointsMechanic.h"

Source

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Mechanics/CurveControlPointsMechanic.cpp

Syntax

int32 InsertPointAt
(
    int32 SequencePosition,
    const FVector3d & PointCoordinates,
    const int32 * KnownPointID
)

Remarks

Inserts a point with the given coordinates at the given position in the sequence.

Returns

the new point's ID.

Parameters

Parameter

Description

KnownPointID

If not null, this parameter stores the PointID we want the new point to have. This is useful for undo/redo operations, where we want to make sure that the we don't end up giving a point a different ID than we did last time. If null, the class generates an ID.