コード例 #1
0
        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);
        }
コード例 #2
0
 private static void UpdateGeometry(HelixToolkit.SharpDX.Core.Geometry3D geometry)
 {
     geometry.UpdateVertices();
     geometry.UpdateTriangles();
     geometry.UpdateBounds();
 }