Skip to content

Commit d664816

Browse files
committed
more improvements to webgpu presenter
1 parent 51fbbe8 commit d664816

9 files changed

Lines changed: 698 additions & 275 deletions

File tree

‎TessellationAndVoxelizationGeometryLibrary/IPresenter3D.cs‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ public interface IPresenter3D
1515
/// <param name="subtitle">The optional subtitle.</param>
1616
void ShowAndHang(Solid solid, string heading = "", string title = "", string subtitle = "");
1717

18-
/// <summary>
19-
/// Displays a solid and invokes <paramref name="onSelection"/> for every viewer triangle selection.
20-
/// </summary>
21-
/// <remarks>
22-
/// Backends that do not support interactive picking throw <see cref="NotSupportedException"/>.
23-
/// </remarks>
24-
void ShowAndHang(Solid solid, Action<(TriangleFace face, Vector3 point)> onSelection, string heading = "", string title = "", string subtitle = "")
25-
=> throw new NotSupportedException("This presenter does not support interactive triangle selection.");
26-
2718
/// <summary>Displays multiple solids and waits until the presentation is closed.</summary>
2819
/// <param name="solids">The solids to render.</param>
2920
/// <param name="heading">The optional heading shown above the presentation.</param>

‎TessellationAndVoxelizationGeometryLibrary/Presenter.cs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ public static void Show(IEnumerable<Polygon> polygon, string title = "", Plot2DT
3232
/// <summary>Displays a solid and waits until the presentation is closed.</summary>
3333
public static void ShowAndHang(Solid solid, string heading = "", string title = "", string subtitle = "")
3434
=> OutputServices.Presenter3D.ShowAndHang(solid, heading, title, subtitle);
35-
/// <summary>Displays a solid and reports each selected triangle to the supplied callback.</summary>
36-
public static void ShowAndHang(Solid solid, Action<(TriangleFace face, Vector3 point)> onSelection, string heading = "", string title = "", string subtitle = "")
37-
=> OutputServices.Presenter3D.ShowAndHang(solid, onSelection, heading, title, subtitle);
35+
3836
/// <summary>Displays multiple solids and waits until the presentation is closed.</summary>
3937
public static void ShowAndHang(IEnumerable<Solid> solids, string heading = "", string title = "", string subtitle = "")
4038
=> OutputServices.Presenter3D.ShowAndHang(solids, heading, title, subtitle);

0 commit comments

Comments
 (0)