public IEnumerator Framerate_StrokeSketchObjects([Values(5, 10, 20)] int steps, [Values(100, 500, 1000, 2000, 4000, 6000, 8000, 10000)] int count) { List <Vector3> controlPoints = GenerateControlPointsYDirection(3); this.StrokeSketchObject.SetInterpolationSteps(steps); this.StrokeSketchObject.SetControlPointsLocalSpace(controlPoints); for (int i = 1; i < count; i++) { StrokeSketchObject currentStroke = GameObject.Instantiate(this.StrokeSketchObject).GetComponent <StrokeSketchObject>(); currentStroke.SetInterpolationSteps(steps); currentStroke.SetControlPointsLocalSpace(controlPoints); currentStroke.transform.position = new Vector3(i % 50, 0, i / 50); } yield return(Measure.Frames().Run()); }
IEnumerator changeDiameter() { yield return(new WaitForSeconds(5)); strokeSketchObject.DeleteControlPoints(deletePoint.transform.position, deleteRadius, out List <StrokeSketchObject> 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); strokeSketchObject.SetInterpolationSteps(4); strokeSketchObject.RefineMesh(); strokeSketchObject2.RefineMesh(); //Debug.Log(exportPath); //lineSketchObject.setLineDiameter(.1f); //yield return new WaitForSeconds(2); //lineSketchObject.deleteControlPoint(); //lineSketchObject.deleteControlPoint(); }