// SPDX-FileCopyrightText: 2023 Unity Technologies and the Draco for Unity authors
// SPDX-License-Identifier: Apache-2.0
using UnityEngine;
namespace Draco
{
///
/// Holds the result of the Draco decoding process.
///
public readonly struct DecodeResult
{
///
/// True if the decoding was successful
///
public readonly bool success;
///
/// Axis aligned bounding box of the mesh/point cloud.
///
public readonly Bounds bounds;
///
/// True, if the normals were marked required, but not present in Draco mesh.
/// They have to get calculated.
///
public readonly bool calculateNormals;
///
/// If the Draco file contained bone indices and bone weights,
/// this property is used to carry them over (since MeshData currently
/// provides no way to apply those values)
///
public readonly BoneWeightData boneWeightData;
public DecodeResult(
bool success,
Bounds bounds,
bool calculateNormals,
BoneWeightData boneWeightData
)
{
this.success = success;
this.bounds = bounds;
this.calculateNormals = calculateNormals;
this.boneWeightData = boneWeightData;
}
}
}