public void SetVertex(int vertexIndex, VertexBuilder<TvG, TvM, VertexEmpty> vertex) { if (object.Equals(vertex, _BaseVertexFunc(vertexIndex))) { _RemoveVertex(vertexIndex); return; } _SetVertex(vertexIndex, vertex); }
public static VertexBuilder <VertexGeometryDelta, VertexMaterialDelta, VertexEmpty>[] GetMorphTargetVertices(this IPrimitiveMorphTargetReader morphTarget, int vertexCount) { var c = new VertexBuilder <VertexGeometryDelta, VertexMaterialDelta, VertexEmpty> [vertexCount]; for (int i = 0; i < vertexCount; ++i) { c[i] = morphTarget.GetVertexDelta(i); } return(c); }
private void _SetVertex(int vertexIndex, VertexBuilder<TvG, TvM, VertexEmpty> vertex) { _MorphVertices[vertexIndex] = vertex; }