Пример #1
0
 private void AddCrossSectionVerts(SegmentNode node)
 {
     node.hasCrossSectionVerts = true;
     node.crossSectionVertsIdx = _meshVerts.Count;
     for (int i = 0; i < _crossSectionVerts.Length; i++)
     {
         _meshVerts.Add(node.GetVertAt(i));
     }
 }
Пример #2
0
 private void RefreshMeshVerts(SegmentNode node, bool uploadImmediately = true)
 {
     for (int i = 0; i < node.CrossSectionVertsCount; i++)
     {
         _meshVerts[node.crossSectionVertsIdx + i] = node.GetVertAt(i);
     }
     if (uploadImmediately)
     {
         UploadMeshData();
     }
 }