using Hi.Geom;
using Hi.Mech.Topo;
using Hi.NcMech.Xyzabc;
using Hi.Numerical.Xyzabc;
namespace Sample.MachineTool;
///
/// Demo Build Machine Tool without gemetries setting.
///
///
/// ### Source Code
/// [!code-csharp[SampleCode](~/../Hi.Sample/MachineTool/DemoBuildMachineToolWithoutGeometrys.cs)]
///
public static class DemoBuildMachineToolWithoutGeometrys
{
///
/// Generates an empty machine tool with basic configuration.
///
/// A configured but empty machine tool without solids.
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;
}
}