-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the AABB fields in the key of meshes
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using System.Numerics; | ||
|
||
namespace AssetRipper.Mining.PredefinedAssets; | ||
|
||
public record struct AabbBounds(Vector3 Center, Vector3 Extents); |
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,18 +1,22 @@ | ||
namespace AssetRipper.Mining.PredefinedAssets; | ||
using System.Numerics; | ||
|
||
namespace AssetRipper.Mining.PredefinedAssets; | ||
|
||
public sealed record class Mesh : NamedObject | ||
{ | ||
public required int VertexCount { get; init; } | ||
public required int SubMeshCount { get; init; } | ||
public required AabbBounds AxisAlignedBoundingBox { get; init; } | ||
|
||
public Mesh() | ||
{ | ||
} | ||
|
||
[SetsRequiredMembers] | ||
public Mesh(string name, int vertexCount, int subMeshCount) : base(name) | ||
public Mesh(string name, int vertexCount, int subMeshCount, AabbBounds axisAlignedBoundingBox) : base(name) | ||
{ | ||
VertexCount = vertexCount; | ||
SubMeshCount = subMeshCount; | ||
AxisAlignedBoundingBox = axisAlignedBoundingBox; | ||
} | ||
} |