Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        public TriMesh(TriMesh <TVec3, TVec2> other)
        {
            _positions   = other._positions.ShallowCopy();
            _vertexCount = other._vertexCount;

            if (other.HasNormals)
            {
                _normals = other._normals.ShallowCopy();
            }

            if (other.HasTangents)
            {
                _tangents = other._tangents.ShallowCopy();
            }

            if (other.HasTextureCoords)
            {
                _textureCoords = other._textureCoords.ShallowCopy();
            }

            _faces     = other._faces.ShallowCopy();
            _faceCount = other._faceCount;
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public void Append(TriMesh <TVector> other)
 {
     Append(ref _positions, _positionCount, other._positions, other._positionCount);
     Append(ref _normals, _normalCount, other._normals, other._normalCount);
     Append(ref _faces, _faceCount, other._faces, other._faceCount);
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 public void Append(TriMesh <TVec3, TVec2> other)
 {
     AppendVertices(other);
     AppendFaces(other);
 }