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)); } }
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(); } }