internal TeethVisual3D addTeeth(Point3D p) { if (JawVisual != null) { return(JawVisual.addTeeth(p)); } return(null); }
internal void manualSegment(Point3DCollection points, Vector3DCollection vectors) { if (RawVisual != null && points.Count > 0) { Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); List <GeometryModel3D> models = RawVisual.manualSegment(points, vectors); if (JawVisual != null && models.Count > 0) { JawVisual.addTeeth(models); //add points as archs JawVisual.selectedGum.Archs = points; } stopWatch.Stop(); TimeSpan ts = stopWatch.Elapsed; string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10); MessageBox.Show("Processing is done ( " + elapsedTime + " ).", "Manual Segmentation"); } }