public bool Execute() { this.OriginalControlPoints = OriginalLineSketchObject.GetControlPoints(); bool didDelete = OriginalLineSketchObject.DeleteControlPoints(Point, Radius, out NewLines); if (OriginalLineSketchObject.gameObject.activeInHierarchy) { NewControlPoints = OriginalLineSketchObject.GetControlPoints(); } else { NewControlPoints = null; } return(didDelete); }
IEnumerator changeDiameter() { yield return(new WaitForSeconds(5)); lineSketchObject.DeleteControlPoints(deletePoint.transform.position, deleteRadius, out List <LineSketchObject> newLines); OBJExporter exporter = new OBJExporter(); string exportPath = OBJExporter.GetDefaultExportPath(); //exporter.ExportGameObject(lineSketchObject.gameObject, exportPath); //Debug.Log(JsonUtility.ToJson(lineSketchObject)); //XMLSerializeTest(); //XMLSerializeTest2(); //exporter.ExportGameObject(controlPointParent, exportPath); lineSketchObject.SetInterpolationSteps(4); lineSketchObject.RefineMesh(); lineSketchObject2.RefineMesh(); //Debug.Log(exportPath); //lineSketchObject.setLineDiameter(.1f); //yield return new WaitForSeconds(2); //lineSketchObject.deleteControlPoint(); //lineSketchObject.deleteControlPoint(); }
private void OnTriggerStay(Collider other) { LineSketchObject.DeleteControlPoints(other.gameObject, transform.position, transform.lossyScale.x / 2); }