private void StopMesh() { if (mesher != null) { mesher.StopMesh(); mesher = null; } if (openConnection != null) { openConnection.Stop(); } }
private bool InitiateMesh() { if (openConnection != null && openConnection.isConnected() && ControllerManager.IsControllerConnected(SelectedController) && UsingSelectedController && mesher == null) { //start the mesh //read what type of configuration to use from saved properties. ControllerConfiguration config = ControllerManager.GetConfiguration(SelectedController); mesher = new ConnectionControllerMesher(openConnection, config); mesher.StartMesh(); return(true); } return(false); }