├── screenshot.png ├── .gitignore ├── .gitattributes ├── Readme.md └── License.md /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WolframResearch/draw/master/screenshot.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # ============ # 2 | # OS generated # 3 | # ============ # 4 | .DS_Store 5 | .DS_Store? 6 | ._* 7 | .Spotlight-V100 8 | .Trashes 9 | ehthumbs.db 10 | Thumbs.db 11 | 12 | # =================== # 13 | # Workbench generated # 14 | # =================== # 15 | .project 16 | .WolframResources -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # ===================================== # 2 | # Attributes # 3 | # ===================================== # 4 | 5 | # Autodetect text files 6 | * text=auto 7 | 8 | # Force the following filetypes to have unix eols, so Windows does not break them 9 | *.* text eol=lf 10 | 11 | # Force the following filetypes to be handled as binaries 12 | *.nb binary 13 | *.jpg binary 14 | *.jpeg binary 15 | *.gif binary 16 | *.png binary 17 | *.t3x binary 18 | *.t3d binary 19 | *.exe binary 20 | *.data binary 21 | *.ttf binary 22 | *.eof binary 23 | *.eot binary 24 | *.swf binary 25 | *.mov binary 26 | *.mp4 binary 27 | *.mp3 binary 28 | *.ogg binary 29 | *.flv binary 30 | *.pdf binary 31 | *.zip binary -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # Draw 3 | 4 | Draw is an application created entirely with the Wolfram Language. It was designed to produce 2D and 3D technical illustrations. 5 | 6 | ![screenshot](screenshot.png) 7 | 8 | ### Using Draw 9 | 10 | Open the Draw.nb file and evaluate draw[]; which is located in the Using Draw section. After Draw opens, click the blue help button for basic information. Hover over any button of the Draw interface to display a tooltip describing its functionality. 11 | 12 | ### Draw development 13 | 14 | Draw was developed as a personal project by Tim Shedelbower of Wolfram Research. It is used regularly to create illustrations found throughout the Wolfram Language documentation and examples. 15 | 16 | ### More... 17 | 18 | See the following files for more information: 19 | 20 | * [License.md](License.md) - Draw license -------------------------------------------------------------------------------- /License.md: -------------------------------------------------------------------------------- 1 | Draw is Copyright (C) 2016, Tim Shedelbower 2 | 3 | This program is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 2 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details 12 | 13 | 14 | ### GNU GENERAL PUBLIC LICENSE 15 | 16 | Version 2, June 1991 17 | 18 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 20 | 21 | Everyone is permitted to copy and distribute verbatim copies 22 | of this license document, but changing it is not allowed. 23 | 24 | ### Preamble 25 | 26 | The licenses for most software are designed to take away your freedom 27 | to share and change it. By contrast, the GNU General Public License is 28 | intended to guarantee your freedom to share and change free 29 | software--to make sure the software is free for all its users. This 30 | General Public License applies to most of the Free Software 31 | Foundation's software and to any other program whose authors commit to 32 | using it. (Some other Free Software Foundation software is covered by 33 | the GNU Lesser General Public License instead.) You can apply it to 34 | your programs, too. 35 | 36 | When we speak of free software, we are referring to freedom, not 37 | price. Our General Public Licenses are designed to make sure that you 38 | have the freedom to distribute copies of free software (and charge for 39 | this service if you wish), that you receive source code or can get it 40 | if you want it, that you can change the software or use pieces of it 41 | in new free programs; and that you know you can do these things. 42 | 43 | To protect your rights, we need to make restrictions that forbid 44 | anyone to deny you these rights or to ask you to surrender the rights. 45 | These restrictions translate to certain responsibilities for you if 46 | you distribute copies of the software, or if you modify it. 47 | 48 | For example, if you distribute copies of such a program, whether 49 | gratis or for a fee, you must give the recipients all the rights that 50 | you have. You must make sure that they, too, receive or can get the 51 | source code. And you must show them these terms so they know their 52 | rights. 53 | 54 | We protect your rights with two steps: (1) copyright the software, and 55 | (2) offer you this license which gives you legal permission to copy, 56 | distribute and/or modify the software. 57 | 58 | Also, for each author's protection and ours, we want to make certain 59 | that everyone understands that there is no warranty for this free 60 | software. If the software is modified by someone else and passed on, 61 | we want its recipients to know that what they have is not the 62 | original, so that any problems introduced by others will not reflect 63 | on the original authors' reputations. 64 | 65 | Finally, any free program is threatened constantly by software 66 | patents. We wish to avoid the danger that redistributors of a free 67 | program will individually obtain patent licenses, in effect making the 68 | program proprietary. To prevent this, we have made it clear that any 69 | patent must be licensed for everyone's free use or not licensed at 70 | all. 71 | 72 | The precise terms and conditions for copying, distribution and 73 | modification follow. 74 | 75 | ### TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 76 | 77 | **0.** This License applies to any program or other work which 78 | contains a notice placed by the copyright holder saying it may be 79 | distributed under the terms of this General Public License. The 80 | "Program", below, refers to any such program or work, and a "work 81 | based on the Program" means either the Program or any derivative work 82 | under copyright law: that is to say, a work containing the Program or 83 | a portion of it, either verbatim or with modifications and/or 84 | translated into another language. (Hereinafter, translation is 85 | included without limitation in the term "modification".) Each licensee 86 | is addressed as "you". 87 | 88 | Activities other than copying, distribution and modification are not 89 | covered by this License; they are outside its scope. The act of 90 | running the Program is not restricted, and the output from the Program 91 | is covered only if its contents constitute a work based on the Program 92 | (independent of having been made by running the Program). Whether that 93 | is true depends on what the Program does. 94 | 95 | **1.** You may copy and distribute verbatim copies of the Program's 96 | source code as you receive it, in any medium, provided that you 97 | conspicuously and appropriately publish on each copy an appropriate 98 | copyright notice and disclaimer of warranty; keep intact all the 99 | notices that refer to this License and to the absence of any warranty; 100 | and give any other recipients of the Program a copy of this License 101 | along with the Program. 102 | 103 | You may charge a fee for the physical act of transferring a copy, and 104 | you may at your option offer warranty protection in exchange for a 105 | fee. 106 | 107 | **2.** You may modify your copy or copies of the Program or any 108 | portion of it, thus forming a work based on the Program, and copy and 109 | distribute such modifications or work under the terms of Section 1 110 | above, provided that you also meet all of these conditions: 111 | 112 | 113 | **a)** You must cause the modified files to carry prominent notices 114 | stating that you changed the files and the date of any change. 115 | 116 | 117 | **b)** You must cause any work that you distribute or publish, that in 118 | whole or in part contains or is derived from the Program or any part 119 | thereof, to be licensed as a whole at no charge to all third parties 120 | under the terms of this License. 121 | 122 | 123 | **c)** If the modified program normally reads commands interactively 124 | when run, you must cause it, when started running for such interactive 125 | use in the most ordinary way, to print or display an announcement 126 | including an appropriate copyright notice and a notice that there is 127 | no warranty (or else, saying that you provide a warranty) and that 128 | users may redistribute the program under these conditions, and telling 129 | the user how to view a copy of this License. (Exception: if the 130 | Program itself is interactive but does not normally print such an 131 | announcement, your work based on the Program is not required to print 132 | an announcement.) 133 | 134 | These requirements apply to the modified work as a whole. If 135 | identifiable sections of that work are not derived from the Program, 136 | and can be reasonably considered independent and separate works in 137 | themselves, then this License, and its terms, do not apply to those 138 | sections when you distribute them as separate works. But when you 139 | distribute the same sections as part of a whole which is a work based 140 | on the Program, the distribution of the whole must be on the terms of 141 | this License, whose permissions for other licensees extend to the 142 | entire whole, and thus to each and every part regardless of who wrote 143 | it. 144 | 145 | Thus, it is not the intent of this section to claim rights or contest 146 | your rights to work written entirely by you; rather, the intent is to 147 | exercise the right to control the distribution of derivative or 148 | collective works based on the Program. 149 | 150 | In addition, mere aggregation of another work not based on the Program 151 | with the Program (or with a work based on the Program) on a volume of 152 | a storage or distribution medium does not bring the other work under 153 | the scope of this License. 154 | 155 | **3.** You may copy and distribute the Program (or a work based on it, 156 | under Section 2) in object code or executable form under the terms of 157 | Sections 1 and 2 above provided that you also do one of the following: 158 | 159 | 160 | **a)** Accompany it with the complete corresponding machine-readable 161 | source code, which must be distributed under the terms of Sections 1 162 | and 2 above on a medium customarily used for software interchange; or, 163 | 164 | 165 | **b)** Accompany it with a written offer, valid for at least three 166 | years, to give any third party, for a charge no more than your cost of 167 | physically performing source distribution, a complete machine-readable 168 | copy of the corresponding source code, to be distributed under the 169 | terms of Sections 1 and 2 above on a medium customarily used for 170 | software interchange; or, 171 | 172 | 173 | **c)** Accompany it with the information you received as to the offer 174 | to distribute corresponding source code. (This alternative is allowed 175 | only for noncommercial distribution and only if you received the 176 | program in object code or executable form with such an offer, in 177 | accord with Subsection b above.) 178 | 179 | The source code for a work means the preferred form of the work for 180 | making modifications to it. For an executable work, complete source 181 | code means all the source code for all modules it contains, plus any 182 | associated interface definition files, plus the scripts used to 183 | control compilation and installation of the executable. However, as a 184 | special exception, the source code distributed need not include 185 | anything that is normally distributed (in either source or binary 186 | form) with the major components (compiler, kernel, and so on) of the 187 | operating system on which the executable runs, unless that component 188 | itself accompanies the executable. 189 | 190 | If distribution of executable or object code is made by offering 191 | access to copy from a designated place, then offering equivalent 192 | access to copy the source code from the same place counts as 193 | distribution of the source code, even though third parties are not 194 | compelled to copy the source along with the object code. 195 | 196 | **4.** You may not copy, modify, sublicense, or distribute the Program 197 | except as expressly provided under this License. Any attempt otherwise 198 | to copy, modify, sublicense or distribute the Program is void, and 199 | will automatically terminate your rights under this License. However, 200 | parties who have received copies, or rights, from you under this 201 | License will not have their licenses terminated so long as such 202 | parties remain in full compliance. 203 | 204 | **5.** You are not required to accept this License, since you have not 205 | signed it. However, nothing else grants you permission to modify or 206 | distribute the Program or its derivative works. These actions are 207 | prohibited by law if you do not accept this License. Therefore, by 208 | modifying or distributing the Program (or any work based on the 209 | Program), you indicate your acceptance of this License to do so, and 210 | all its terms and conditions for copying, distributing or modifying 211 | the Program or works based on it. 212 | 213 | **6.** Each time you redistribute the Program (or any work based on 214 | the Program), the recipient automatically receives a license from the 215 | original licensor to copy, distribute or modify the Program subject to 216 | these terms and conditions. You may not impose any further 217 | restrictions on the recipients' exercise of the rights granted herein. 218 | You are not responsible for enforcing compliance by third parties to 219 | this License. 220 | 221 | **7.** If, as a consequence of a court judgment or allegation of 222 | patent infringement or for any other reason (not limited to patent 223 | issues), conditions are imposed on you (whether by court order, 224 | agreement or otherwise) that contradict the conditions of this 225 | License, they do not excuse you from the conditions of this License. 226 | If you cannot distribute so as to satisfy simultaneously your 227 | obligations under this License and any other pertinent obligations, 228 | then as a consequence you may not distribute the Program at all. For 229 | example, if a patent license would not permit royalty-free 230 | redistribution of the Program by all those who receive copies directly 231 | or indirectly through you, then the only way you could satisfy both it 232 | and this License would be to refrain entirely from distribution of the 233 | Program. 234 | 235 | If any portion of this section is held invalid or unenforceable under 236 | any particular circumstance, the balance of the section is intended to 237 | apply and the section as a whole is intended to apply in other 238 | circumstances. 239 | 240 | It is not the purpose of this section to induce you to infringe any 241 | patents or other property right claims or to contest validity of any 242 | such claims; this section has the sole purpose of protecting the 243 | integrity of the free software distribution system, which is 244 | implemented by public license practices. Many people have made 245 | generous contributions to the wide range of software distributed 246 | through that system in reliance on consistent application of that 247 | system; it is up to the author/donor to decide if he or she is willing 248 | to distribute software through any other system and a licensee cannot 249 | impose that choice. 250 | 251 | This section is intended to make thoroughly clear what is believed to 252 | be a consequence of the rest of this License. 253 | 254 | **8.** If the distribution and/or use of the Program is restricted in 255 | certain countries either by patents or by copyrighted interfaces, the 256 | original copyright holder who places the Program under this License 257 | may add an explicit geographical distribution limitation excluding 258 | those countries, so that distribution is permitted only in or among 259 | countries not thus excluded. In such case, this License incorporates 260 | the limitation as if written in the body of this License. 261 | 262 | **9.** The Free Software Foundation may publish revised and/or new 263 | versions of the General Public License from time to time. Such new 264 | versions will be similar in spirit to the present version, but may 265 | differ in detail to address new problems or concerns. 266 | 267 | Each version is given a distinguishing version number. If the Program 268 | specifies a version number of this License which applies to it and 269 | "any later version", you have the option of following the terms and 270 | conditions either of that version or of any later version published by 271 | the Free Software Foundation. If the Program does not specify a 272 | version number of this License, you may choose any version ever 273 | published by the Free Software Foundation. 274 | 275 | **10.** If you wish to incorporate parts of the Program into other 276 | free programs whose distribution conditions are different, write to 277 | the author to ask for permission. For software which is copyrighted by 278 | the Free Software Foundation, write to the Free Software Foundation; 279 | we sometimes make exceptions for this. Our decision will be guided by 280 | the two goals of preserving the free status of all derivatives of our 281 | free software and of promoting the sharing and reuse of software 282 | generally. 283 | 284 | **NO WARRANTY** 285 | 286 | **11.** BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO 287 | WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 288 | EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 289 | OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY 290 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 291 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 292 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 293 | PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME 294 | THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 295 | 296 | **12.** IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 297 | WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 298 | AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU 299 | FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 300 | CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 301 | PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 302 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 303 | FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF 304 | SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 305 | DAMAGES. 306 | 307 | ### END OF TERMS AND CONDITIONS 308 | 309 | ### How to Apply These Terms to Your New Programs 310 | 311 | If you develop a new program, and you want it to be of the greatest 312 | possible use to the public, the best way to achieve this is to make it 313 | free software which everyone can redistribute and change under these 314 | terms. 315 | 316 | To do so, attach the following notices to the program. It is safest to 317 | attach them to the start of each source file to most effectively 318 | convey the exclusion of warranty; and each file should have at least 319 | the "copyright" line and a pointer to where the full notice is found. 320 | 321 | one line to give the program's name and an idea of what it does. 322 | Copyright (C) yyyy name of author 323 | 324 | This program is free software; you can redistribute it and/or 325 | modify it under the terms of the GNU General Public License 326 | as published by the Free Software Foundation; either version 2 327 | of the License, or (at your option) any later version. 328 | 329 | This program is distributed in the hope that it will be useful, 330 | but WITHOUT ANY WARRANTY; without even the implied warranty of 331 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 332 | GNU General Public License for more details. 333 | 334 | You should have received a copy of the GNU General Public License 335 | along with this program; if not, write to the Free Software 336 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 337 | 338 | Also add information on how to contact you by electronic and paper 339 | mail. 340 | 341 | If the program is interactive, make it output a short notice like this 342 | when it starts in an interactive mode: 343 | 344 | Gnomovision version 69, Copyright (C) year name of author 345 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details 346 | type `show w'. This is free software, and you are welcome 347 | to redistribute it under certain conditions; type `show c' 348 | for details. 349 | 350 | The hypothetical commands \`show w' and \`show c' should show the 351 | appropriate parts of the General Public License. Of course, the 352 | commands you use may be called something other than \`show w' and 353 | \`show c'; they could even be mouse-clicks or menu items--whatever 354 | suits your program. 355 | 356 | You should also get your employer (if you work as a programmer) or 357 | your school, if any, to sign a "copyright disclaimer" for the program, 358 | if necessary. Here is a sample; alter the names: 359 | 360 | Yoyodyne, Inc., hereby disclaims all copyright 361 | interest in the program `Gnomovision' 362 | (which makes passes at compilers) written 363 | by James Hacker. 364 | 365 | signature of Ty Coon, 1 April 1989 366 | Ty Coon, President of Vice 367 | 368 | This General Public License does not permit incorporating your program 369 | into proprietary programs. If your program is a subroutine library, 370 | you may consider it more useful to permit linking proprietary 371 | applications with the library. If this is what you want to do, use the 372 | [GNU Lesser General Public 373 | License](http://www.gnu.org/licenses/lgpl.html) instead of this 374 | License. --------------------------------------------------------------------------------