private void AddLine(Vector3 old, Vector3 next, HelixToolkit.SharpDX.Core.Geometry3D geometry) { int i0 = geometry.Positions.Count; geometry.Positions.Add(old); geometry.Positions.Add(next); geometry.Indices.Add(i0); geometry.Indices.Add(i0 + 1); }
private static void UpdateGeometry(HelixToolkit.SharpDX.Core.Geometry3D geometry) { geometry.UpdateVertices(); geometry.UpdateTriangles(); geometry.UpdateBounds(); }