fix: 线条锚定

master
Tongg 4 months ago
parent 871a9e1d00
commit 137af7e9e1
  1. 4
      Views/UserControl/ViewportData/Helper/ViewportHelperPro.cs

@ -672,7 +672,9 @@ public class ViewportHelperPro
List<Vector3> facetPoints = new List<Vector3>();
dic.Value.ForEach(e => { facetPoints.Add(e.Point1); facetPoints.Add(e.Point2); facetPoints.Add(e.Point3); });
//高亮的线
var showLine = GetLeftParallelLineSegment(facetPoints);
// var showLine = GetLeftParallelLineSegment(facetPoints);
var facetIndex = int.Parse(dic.Key.Split("_")[1]);
var showLine =GetLeftOrRightLineSegment(facetPoints, facetIndex >= 24 && facetIndex <= 55 ? true : false);;
if (showLine == null) continue;
//文字显示位置

Loading…
Cancel
Save