Move mesh instance id to model utils.

This commit is contained in:
kovacsv 2021-10-24 16:48:43 +02:00
parent 4250ab3b58
commit bd6a66a781
2 changed files with 14 additions and 14 deletions

View File

@ -1,17 +1,3 @@
OV.MeshInstanceId = class
{
constructor (nodeId, meshIndex)
{
this.nodeId = nodeId;
this.meshIndex = meshIndex;
}
IsEqual (rhs)
{
return this.nodeId === rhs.nodeId && this.meshIndex === rhs.meshIndex;
}
};
OV.Model = class extends OV.ModelObject3D
{
constructor ()

View File

@ -1,3 +1,17 @@
OV.MeshInstanceId = class
{
constructor (nodeId, meshIndex)
{
this.nodeId = nodeId;
this.meshIndex = meshIndex;
}
IsEqual (rhs)
{
return this.nodeId === rhs.nodeId && this.meshIndex === rhs.meshIndex;
}
};
OV.CalculateTriangleNormal = function (v0, v1, v2)
{
let v = OV.SubCoord3D (v1, v0);