BREAKING CHANGE: source that names Hi.Geom.Vec3d or Hi.Geom.Vec2d as the vector type must say vec3d_t / vec2d_t. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
30 lines
929 B
C#
30 lines
929 B
C#
using Hi.Geom;
|
|
using Hi.Mech.Topo;
|
|
using Hi.NcMech.Xyzabc;
|
|
using Hi.Numerical.Xyzabc;
|
|
|
|
namespace Sample.MachineTool;
|
|
|
|
/// <summary>
|
|
/// Demo Build Machine Tool without gemetries setting.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// ### Source Code
|
|
/// [!code-csharp[SampleCode](~/../Hi.Sample/MachineTool/DemoBuildMachineToolWithoutGeometrys.cs)]
|
|
/// </remarks>
|
|
public static class DemoBuildMachineToolWithoutGeometrys
|
|
{
|
|
/// <summary>
|
|
/// Generates an empty machine tool with basic configuration.
|
|
/// </summary>
|
|
/// <returns>A configured but empty machine tool without solids.</returns>
|
|
public static GeneralXyzabcMachineTool GenEmptyMachineTool()
|
|
{
|
|
GeneralXyzabcMachineTool xyzabcMachineTool = GeneralXyzabcMachineTool.CreateFromChainCode(
|
|
"[O][C][w];[O][X][Y][Z][B][S][t]");
|
|
if (xyzabcMachineTool.ToolMountTransformer is StaticTranslation st)
|
|
st.Trans = new vec3d_t(-200, 200, 400);
|
|
return xyzabcMachineTool;
|
|
}
|
|
}
|