migrate doc to wwwroot.
This commit is contained in:
@@ -11,7 +11,9 @@ using Hi.Disp;
|
||||
namespace Sample.Machining
|
||||
{
|
||||
/// <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.
|
||||
/// Demonstrates integration of machining process visualization with interactive strip position selection.
|
||||
/// Shows how to load a machining project, configure rendering options, and implement user interaction.
|
||||
/// Provides a complete example of a 3D visualization application with HiAPI and WPF.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// ### Source Code
|
||||
@@ -20,7 +22,7 @@ namespace Sample.Machining
|
||||
public static class DemoRenderingMachiningProcessAndStripPosSelection
|
||||
{
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
static void Main(string[] args)
|
||||
{
|
||||
#region Initialize Environment
|
||||
License.LogInAll();
|
||||
@@ -36,7 +38,7 @@ namespace Sample.Machining
|
||||
Console.WriteLine($"Load Project: {projectPath}");
|
||||
MachiningProject machiningProject = MachiningProject.LoadFile(projectPath);
|
||||
|
||||
machiningProject.ShellApi.MillingStepSelected += (MillingStep step) =>
|
||||
machiningProject.ShellApi.MillingStepSelected += (MachiningStep step) =>
|
||||
{
|
||||
var sourceCommand = step.SourceCommand;
|
||||
Console.WriteLine($"Step Selected: MRR = {step.Mrr_mm3ds} At \"{sourceCommand?.FilePath}\" (Line {sourceCommand?.GetLineNo()}) \"{sourceCommand?.Line}\"");
|
||||
|
||||
Reference in New Issue
Block a user