migrate doc to wwwroot.

This commit is contained in:
2025-04-14 17:05:31 +08:00
parent 1cb5f05ba4
commit 784184d6ce
6 changed files with 48 additions and 20 deletions
+17 -16
View File
@@ -6,27 +6,22 @@ using Hi.Mech.Topo;
namespace Sample.Mech
{
public class Test : IDisplayee
{
/// <inheritdoc/>
public void Display(Bind bind)
{
throw new NotImplementedException();
}
/// <inheritdoc/>
public void ExpandToBox3d(Box3d dst)
{
throw new NotImplementedException();
}
}
/// <summary>
/// Demonstrates the creation and visualization of mechanical assemblies with kinematic linkages.
/// Shows how to build coordinate systems, establish kinematic relationships, and capture visual output.
/// </summary>
/// <remarks>
/// ### Source Code
/// [!code-csharp[SampleCode](~/../Hi.Sample/Mech/DemoTopo1.cs)]
/// </remarks>
public static class DemoTopo1
{
public static (Asmb asmb,Anchor root) GetDemoAsmb()
/// <summary>
/// Creates a demonstration assembly with kinematic linkages.
/// Builds a mechanical assembly with multiple anchors and branches, including both static and dynamic transformations.
/// </summary>
/// <returns>A tuple containing the assembly and root anchor</returns>
static (Asmb asmb,Anchor root) GetDemoAsmb()
{
#region DocSite.DemoTopo1
//build coordinate systems and the assembly.
@@ -57,7 +52,13 @@ namespace Sample.Mech
return (asmb,O);
}
public static void SnapshotToFile((Asmb asmb, Anchor root) src)
/// <summary>
/// Captures the assembly visualization and saves it to a file.
/// Initializes the display engine, sets up the assembly visualization with an isometric view, and saves a snapshot to a bitmap file.
/// </summary>
/// <param name="src">A tuple containing the assembly and root anchor for visualization</param>
static void SnapshotToFile((Asmb asmb, Anchor root) src)
{
//all the drawing function has to call DispEngine.Init() before using.
DispEngine.Init();