You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb lonnie.li #rnx #jira none #preflight 61a149bef70a9e92dba305e4 #ROBOMERGE-AUTHOR: ryan.schmidt #ROBOMERGE-SOURCE: CL 18302005 in //UE5/Release-5.0/... via CL 18302009 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469) [CL 18302010 by ryan schmidt in ue5-release-engine-test branch]
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "FrameTypes.h"
|
|
|
|
class AVolume;
|
|
class UBrushComponent;
|
|
class UModel;
|
|
PREDECLARE_GEOMETRY(class FDynamicMesh3);
|
|
|
|
namespace UE {
|
|
namespace Conversion {
|
|
|
|
struct FVolumeToMeshOptions
|
|
{
|
|
bool bInWorldSpace = false;
|
|
bool bSetGroups = true;
|
|
bool bMergeVertices = true;
|
|
bool bAutoRepairMesh = true;
|
|
bool bOptimizeMesh = true;
|
|
};
|
|
|
|
/**
|
|
* Converts an AVolume to a FDynamicMesh3. Does not initialize normals and does not delete the volume.
|
|
*/
|
|
void MODELINGCOMPONENTS_API VolumeToDynamicMesh(AVolume* Volume, UE::Geometry::FDynamicMesh3& Mesh, const FVolumeToMeshOptions& Options);
|
|
|
|
/**
|
|
* Converts a UBrushComponent to a FDynamicMesh3. Does not initialize normals and does not delete the volume.
|
|
*/
|
|
void MODELINGCOMPONENTS_API BrushComponentToDynamicMesh(UBrushComponent* Component, UE::Geometry::FDynamicMesh3& Mesh, const FVolumeToMeshOptions& Options);
|
|
|
|
/**
|
|
* Converts a UModel to a FDynamicMesh3. Does not initialize normals.
|
|
*/
|
|
void MODELINGCOMPONENTS_API BrushToDynamicMesh(UModel& BrushModel, UE::Geometry::FDynamicMesh3& Mesh, const FVolumeToMeshOptions& Options);
|
|
|
|
|
|
}}//end namespace UE::Conversion
|