This commit is contained in:
iambossTC 2025-04-09 21:41:15 +08:00
parent c3001697ac
commit 1e7ce15f4c
3 changed files with 19 additions and 3 deletions

View File

@ -6,6 +6,8 @@
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<Configurations>Demo;Maintenance</Configurations> <Configurations>Demo;Maintenance</Configurations>
<AssemblyName>Hi.Sample.Wpf</AssemblyName>
<RootNamespace>Sample.Wpf</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -13,6 +15,12 @@
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Maintenance'"> <ItemGroup Condition="'$(Configuration)'=='Maintenance'">
<ProjectReference Include="..\HiLicense\HiLicense.csproj" />
<ProjectReference Include="..\HiGeom\HiGeom.csproj" />
<ProjectReference Include="..\HiDisp\HiDisp.csproj" />
<ProjectReference Include="..\HiCbtr\HiCbtr.csproj" />
<ProjectReference Include="..\HiMech\HiMech.csproj" />
<ProjectReference Include="..\HiUniNc\HiUniNc.csproj" />
<ProjectReference Include="..\HiNc\HiNc.csproj" /> <ProjectReference Include="..\HiNc\HiNc.csproj" />
<ProjectReference Include="..\Hi.Wpf\Hi.Wpf.csproj" /> <ProjectReference Include="..\Hi.Wpf\Hi.Wpf.csproj" />
</ItemGroup> </ItemGroup>

View File

@ -8,9 +8,17 @@ using Hi.MillingSteps;
using System.Windows; using System.Windows;
using Hi.Disp; using Hi.Disp;
namespace Hi.Sample.Wpf.Machining namespace Sample.Wpf.Machining
{ {
class DemoRenderingMachiningProcessAndStripPosSelection
/// <summary>
/// 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.
/// </summary>
/// <remarks>
/// ### Source Code
/// [!code-csharp[SampleCode](~/../Hi.Sample.Wpf/Machining/DemoRenderingMachiningProcessAndStripPosSelection.cs)]
/// </remarks>
public static class DemoRenderingMachiningProcessAndStripPosSelection
{ {
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)