48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MuT/NodeModifierMeshClipMorphPlane.h"
|
|
|
|
#include "MuR/MutableMath.h"
|
|
|
|
namespace mu
|
|
{
|
|
|
|
void NodeModifierMeshClipMorphPlane::SetPlane(FVector3f Center, FVector3f Normal)
|
|
{
|
|
Parameters.Origin = Center;
|
|
Parameters.Normal = Normal;
|
|
}
|
|
|
|
|
|
void NodeModifierMeshClipMorphPlane::SetParams(float dist, float factor)
|
|
{
|
|
Parameters.DistanceToPlane = dist;
|
|
Parameters.LinearityFactor = factor;
|
|
}
|
|
|
|
|
|
void NodeModifierMeshClipMorphPlane::SetMorphEllipse(float radius1, float radius2, float rotation)
|
|
{
|
|
Parameters.Radius1 = radius1;
|
|
Parameters.Radius2 = radius2;
|
|
Parameters.Rotation = rotation;
|
|
}
|
|
|
|
|
|
void NodeModifierMeshClipMorphPlane::SetVertexSelectionBox(float centerX, float centerY, float centerZ, float radiusX, float radiusY, float radiusZ)
|
|
{
|
|
Parameters.VertexSelectionType = EClipVertexSelectionType::Shape;
|
|
Parameters.SelectionBoxOrigin = FVector3f(centerX, centerY, centerZ);
|
|
Parameters.SelectionBoxRadius = FVector3f(radiusX, radiusY, radiusZ);
|
|
}
|
|
|
|
|
|
void NodeModifierMeshClipMorphPlane::SetVertexSelectionBone(const FBoneName& BoneId, float maxEffectRadius)
|
|
{
|
|
Parameters.VertexSelectionType = EClipVertexSelectionType::BoneHierarchy;
|
|
Parameters.VertexSelectionBone = BoneId;
|
|
Parameters.MaxEffectRadius = maxEffectRadius;
|
|
}
|
|
|
|
}
|