-
-
Save A-gambit/ee3b69a1a94d47b6fe27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Transaction editDatabase = editor.Document.Database.TransactionManager.StartTransaction(); | |
| CreateSphere(editDatabase, new Point3d(1000, 1000, 0), 100); | |
| Point3d currentCenter = new Point3d(0, 0, 0); | |
| double u = 0; | |
| while (u < Math.PI * 1000) | |
| { | |
| double x = u, | |
| y = Math.Cos(u) + Math.Sin(Math.Sqrt(3)*u), | |
| r = Math.PI / 100; | |
| currentCenter = new Point3d(x, y, currentCenter.Z); | |
| CreateCircle(editDatabase, currentCenter, Vector3d.ZAxis, r); | |
| u += r*2; | |
| } | |
| editDatabase.Commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment