clone method

  1. @override
MeshD clone()
override

Returns a deep copy of this instance, preserving op if present.

Implementation

@override
MeshD clone() => .new(
  op: op,
  vertexCount: vertexCount,
  triangleCount: triangleCount,
  boneCount: boneCount,
  vertices: .from(vertices),
  texcoords: .from(texcoords),
  texcoords2: .from(texcoords2),
  normals: .from(normals),
  tangents: .from(tangents),
  colors: .from(colors),
  indices: .from(indices),
  boneIndices: .from(boneIndices),
  boneWeights: .from(boneWeights),
  animVertices: .from(animVertices),
  animNormals: .from(animNormals),
  vaoId: vaoId,
  vboId: .from(vboId),
);