From 1e7ce15f4ca1d6979f63af42064eea1efeeb0684 Mon Sep 17 00:00:00 2001 From: iambossTC Date: Wed, 9 Apr 2025 21:41:15 +0800 Subject: [PATCH] tune. --- .gitignore | 2 +- Hi.Sample.Wpf.csproj | 8 ++++++++ ...oRenderingMachiningProcessAndStripPosSelection.cs | 12 ++++++++++-- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6d95f9c..048c4ac 100644 --- a/.gitignore +++ b/.gitignore @@ -265,4 +265,4 @@ __pycache__/ !hasp*.exe !hasp*.dll !HiLock.dll -!Aladdin*.dll +!Aladdin*.dll \ No newline at end of file diff --git a/Hi.Sample.Wpf.csproj b/Hi.Sample.Wpf.csproj index cbec29f..68c04aa 100644 --- a/Hi.Sample.Wpf.csproj +++ b/Hi.Sample.Wpf.csproj @@ -6,6 +6,8 @@ x64 true Demo;Maintenance + Hi.Sample.Wpf + Sample.Wpf @@ -13,6 +15,12 @@ + + + + + + diff --git a/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs b/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs index 051df6e..e97e073 100644 --- a/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs +++ b/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs @@ -8,9 +8,17 @@ using Hi.MillingSteps; using System.Windows; using Hi.Disp; -namespace Hi.Sample.Wpf.Machining +namespace Sample.Wpf.Machining { - class DemoRenderingMachiningProcessAndStripPosSelection + + /// + /// This example demonstrates how to integrate HiAPI's machining visualization capabilities into a WPF application. It utilizes the Hi.Wpf.Disp namespace to render machining processes in a 3D environment and implement user interaction features like strip position selection. The sample shows how to set up the rendering pipeline, handle camera controls, and connect machining data with the visualization system. This example is essential for developers building interactive CAM applications that require both rich visualization capabilities and user interaction with the machining model. + /// + /// + /// ### Source Code + /// [!code-csharp[SampleCode](~/../Hi.Sample.Wpf/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs)] + /// + public static class DemoRenderingMachiningProcessAndStripPosSelection { [STAThread] public static void Main(string[] args)