Struct DecodeResult
Holds the result of the Draco decoding process.
Inherited Members
Namespace: Draco
Assembly: solution.dll
Syntax
public readonly struct DecodeResult
Constructors
DecodeResult(bool, Bounds, bool, BoneWeightData)
Declaration
public DecodeResult(bool success, Bounds bounds, bool calculateNormals, BoneWeightData boneWeightData)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | success | |
| Bounds | bounds | |
| bool | calculateNormals | |
| BoneWeightData | boneWeightData |
Fields
boneWeightData
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)
Declaration
public readonly BoneWeightData boneWeightData
Field Value
| Type | Description |
|---|---|
| BoneWeightData |
bounds
Axis aligned bounding box of the mesh/point cloud.
Declaration
public readonly Bounds bounds
Field Value
| Type | Description |
|---|---|
| Bounds |
calculateNormals
True, if the normals were marked required, but not present in Draco mesh. They have to get calculated.
Declaration
public readonly bool calculateNormals
Field Value
| Type | Description |
|---|---|
| bool |
success
True if the decoding was successful
Declaration
public readonly bool success
Field Value
| Type | Description |
|---|---|
| bool |