private MeshGeometry3D Build(MDT.SimpleTool t) { var builder = new MeshBuilder(); builder.AddCylinder(new Vector3(), new Vector3(0.0f, 0.0f, -(float)t.Length), t.Diameter / 2.0); return(builder.ToMesh()); }
private static MDT.Tool ToSimple(MMT.Tool tool) { var t = new MDT.SimpleTool(); var simpleTool = tool as MMT.SimpleTool; t.Diameter = simpleTool.Diameter; t.Length = simpleTool.Length; t.UsefulLength = simpleTool.UsefulLength; UpdateBaseData(t, tool); return(t); }