Пример #1
0
        internal void SetTexturesCoincident(IEnumerable <int> vertices)
        {
            var lookup = sharedTextureLookup;

            SharedVertex.SetCoincident(ref lookup, vertices);
            SetSharedTextures(lookup);
        }
Пример #2
0
        /// <summary>
        /// Sets the passed vertices as being considered coincident by the ProBuilderMesh.
        /// </summary>
        /// <remarks>
        /// Note that it is up to the caller to ensure that the passed vertices are indeed sharing a position.
        /// </remarks>
        /// <param name="vertices">Returns a list of vertices to be associated as coincident.</param>
        public void SetVerticesCoincident(IEnumerable <int> vertices)
        {
            var        lookup     = sharedVertexLookup;
            List <int> coincident = new List <int>();

            GetCoincidentVertices(vertices, coincident);
            SharedVertex.SetCoincident(ref lookup, coincident);
            SetSharedVertices(lookup);
        }