-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
148 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Draco.IO.Core; | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
using Draco.IO.Enums; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
||
internal abstract class AttributeTransform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Draco.IO.Core; | ||
using Draco.IO.Enums; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Draco/IO/Attributes/PredictionSchemes/IPredictionScheme.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
using Draco.IO.Enums; | ||
|
||
namespace Draco.IO.Attributes.PredictionSchemes; | ||
|
||
internal interface IPredictionScheme | ||
|
1 change: 1 addition & 0 deletions
1
.../Attributes/PredictionSchemes/MeshPredictionSchemeConstrainedMultiParallelogramDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeGeometricNormalDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeGeometricNormalPredictor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeGeometricNormalPredictorArea.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Draco.IO.Core; | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
using Draco.IO.Mesh; | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeMultiParallelogramDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeParallelogramDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Numerics; | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
using Draco.IO.Mesh; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/MeshPredictionSchemeTexCoordsPortableDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/PredictionSchemeDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Numerics; | ||
using Draco.IO.Enums; | ||
|
||
namespace Draco.IO.Attributes.PredictionSchemes; | ||
|
||
|
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/PredictionSchemeDecoderFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/PredictionSchemeDeltaDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/PredictionSchemes/PredictionSchemeWrapTransform.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Draco/IO/Attributes/SequentialAttributeDecodersController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Draco/IO/Attributes/SequentialQuantizationAttributeDecoder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
|
||
namespace Draco.IO.Attributes; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum AttributeTransformType : sbyte | ||
{ | ||
InvalidTransform = -1, | ||
NoTransform = 0, | ||
QuantizationTransform = 1, | ||
OctahedronTransform = 2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum DataType : byte | ||
{ | ||
Invalid = 0, | ||
Int8, | ||
UInt8, | ||
Int16, | ||
UInt16, | ||
Int32, | ||
UInt32, | ||
Int64, | ||
UInt64, | ||
Float32, | ||
Float64, | ||
Bool, | ||
Count | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum GeometryAttributeType : sbyte | ||
{ | ||
Invalid = -1, | ||
Position = 0, | ||
Normal = 1, | ||
Color = 2, | ||
TexCoord = 3, | ||
Generic, | ||
NamedAttributesCount | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
/// <summary> | ||
/// Represents different variants of <see cref="Mesh.Mesh"/> attributes. | ||
/// </summary> | ||
public enum MeshAttributeElementType : byte | ||
{ | ||
/// <summary> | ||
/// All corners attached to a vertex share the same attribute value. A typical example are the vertex positions and often vertex colors. | ||
/// </summary> | ||
VertexAttribute = 0, | ||
/// <summary> | ||
/// The most general attribute where every corner of the mesh can have a different attribute value. Often used for texture coordinates or normals. | ||
/// </summary> | ||
CornerAttribute = 1, | ||
/// <summary> | ||
/// All corners of a single face share the same value. | ||
/// </summary> | ||
FaceAttribute = 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum MeshTraversalMethod : byte | ||
{ | ||
DepthFirst = 0, | ||
PredictionDegree, | ||
Count | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum MultiParallelogramMode : byte | ||
{ | ||
Optimal = 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum NormalPredictionMode : byte | ||
{ | ||
OneTriangle = 0, | ||
TriangleArea = 1, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum PredictionSchemeMethod : sbyte | ||
{ | ||
None = -2, | ||
Undefined = -1, | ||
Difference = 0, | ||
Parallelogram = 1, | ||
MultiParallelogram = 2, | ||
TexCoordsDeprecated = 3, | ||
ConstrainedMultiParallelogram = 4, | ||
TexCoordsPortable = 5, | ||
GeometricNormal = 6, | ||
Count | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum PredictionSchemeTransformType : sbyte | ||
{ | ||
None = -1, | ||
Delta = 0, | ||
Wrap = 1, | ||
NormalOctahedron = 2, | ||
NormalOctahedronCanonicalized = 3, | ||
Count, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Draco.IO.Enums; | ||
|
||
public enum SequentialAttributeEncoderType : byte | ||
{ | ||
Generic = 0, | ||
Integer, | ||
Quantization, | ||
Normals | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using Draco.IO.Attributes; | ||
using Draco.IO.Enums; | ||
using Draco.IO.Extensions; | ||
|
||
namespace Draco.IO.Mesh; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
using Draco.IO.Enums; | ||
|
||
namespace Draco.IO.Mesh; | ||
|
||
internal class MeshAttributeData | ||
|
Oops, something went wrong.