예제 #1
0
        public void SetVertex(int vertexIndex, VertexBuilder<TvG, TvM, VertexEmpty> vertex)
        {
            if (object.Equals(vertex, _BaseVertexFunc(vertexIndex)))
            {
                _RemoveVertex(vertexIndex);
                return;
            }

            _SetVertex(vertexIndex, vertex);
        }
예제 #2
0
        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);
        }
예제 #3
0
 private void _SetVertex(int vertexIndex, VertexBuilder<TvG, TvM, VertexEmpty> vertex)
 {
     _MorphVertices[vertexIndex] = vertex;
 }