Files
UnrealEngineUWP/Engine/Plugins/Experimental/MeshModelingToolsetExp/Source/MeshModelingToolsExp/Public/Properties/MeshAnalysisProperties.h
rinat abdrashitov e9f507cb33 Increased the fractional precision of the surface area and volume numbers in the Inspector tool. The precision is 4 by default. It increases further for smaller numbers.
Added a utility function to convert a number to a string while being able to specify the fractional precision if the number is below a certain other number.

#rb ryan.schmidt
#rnx
#jira UE-129531
#preflight 61a02381902e796b32edbe1f

#ROBOMERGE-AUTHOR: rinat.abdrashitov
#ROBOMERGE-SOURCE: CL 18310719 in //UE5/Release-5.0/... via CL 18310850
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 18310947 by rinat abdrashitov in ue5-release-engine-test branch]
2021-11-29 11:38:16 -05:00

33 lines
670 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "InteractiveToolBuilder.h"
#include "GeometryBase.h"
#include "MeshAnalysisProperties.generated.h"
// predeclarations
PREDECLARE_USE_GEOMETRY_CLASS(FDynamicMesh3);
UCLASS()
class MESHMODELINGTOOLSEXP_API UMeshAnalysisProperties : public UInteractiveToolPropertySet
{
GENERATED_BODY()
public:
/** In meters squared */
UPROPERTY(VisibleAnywhere, Category = MeshAnalysis)
FString SurfaceArea;
/** In cubic meters */
UPROPERTY(VisibleAnywhere, Category = MeshAnalysis)
FString Volume;
void Update(const FDynamicMesh3& Mesh, const FTransform& Transform);
};