Move mesh instance id to model utils.
This commit is contained in:
parent
4250ab3b58
commit
bd6a66a781
@ -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 ()
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user