Revisão | 9 (tree) |
---|---|
Hora | 2013-01-13 17:55:44 |
Autor | mocchi_2012 |
header.h追加
@@ -1,334 +0,0 @@ | ||
1 | -* OpenNurbsViewer | |
2 | - Copyright (c) 2013 mocchi | |
3 | - | |
4 | - Permission is hereby granted, free of charge, to any person obtaining | |
5 | - a copy of this software and associated documentation files (the "Software"), | |
6 | - to deal in the Software without restriction, including without limitation | |
7 | - the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
8 | - and/or sell copies of the Software, and to permit persons to whom the Software | |
9 | - is furnished to do so, subject to the following conditions: | |
10 | - | |
11 | - The above copyright notice and this permission notice shall be included | |
12 | - in all copies or substantial portions of the Software. | |
13 | - | |
14 | - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
15 | - OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
16 | - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
17 | - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
18 | - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
19 | - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
20 | - | |
21 | -OpenNurbsViewer use following libraries. | |
22 | ----- | |
23 | -* The Irrlicht Engine | |
24 | - | |
25 | - Copyright (C) 2002-2012 Nikolaus Gebhardt | |
26 | - | |
27 | - This software is provided 'as-is', without any express or implied | |
28 | - warranty. In no event will the authors be held liable for any damages | |
29 | - arising from the use of this software. | |
30 | - | |
31 | - Permission is granted to anyone to use this software for any purpose, | |
32 | - including commercial applications, and to alter it and redistribute it | |
33 | - freely, subject to the following restrictions: | |
34 | - | |
35 | - 1. The origin of this software must not be misrepresented; you must not | |
36 | - claim that you wrote the original software. If you use this software | |
37 | - in a product, an acknowledgement in the product documentation would be | |
38 | - appreciated but is not required. | |
39 | - 2. Altered source versions must be clearly marked as such, and must not be | |
40 | - misrepresented as being the original software. | |
41 | - 3. This notice may not be removed or altered from any source distribution. | |
42 | - | |
43 | ----- | |
44 | -* A File Encryption Utility | |
45 | - Copyright (c) 2003, Dr Brian Gladman < >, Worcester, UK. | |
46 | - All rights reserved. | |
47 | - | |
48 | - LICENSE TERMS | |
49 | - | |
50 | - The free distribution and use of this software in both source and binary | |
51 | - form is allowed (with or without changes) provided that: | |
52 | - | |
53 | - 1. distributions of this source code include the above copyright | |
54 | - notice, this list of conditions and the following disclaimer; | |
55 | - | |
56 | - 2. distributions in binary form include the above copyright | |
57 | - notice, this list of conditions and the following disclaimer | |
58 | - in the documentation and/or other associated materials; | |
59 | - | |
60 | - 3. the copyright holder's name is not used to endorse products | |
61 | - built using this software without specific written permission. | |
62 | - | |
63 | - ALTERNATIVELY, provided that this notice is retained in full, this product | |
64 | - may be distributed under the terms of the GNU General Public License (GPL), | |
65 | - in which case the provisions of the GPL apply INSTEAD OF those given above. | |
66 | - | |
67 | - DISCLAIMER | |
68 | - | |
69 | - This software is provided 'as is' with no explicit or implied warranties | |
70 | - in respect of its properties, including, but not limited to, correctness | |
71 | - and/or fitness for purpose. | |
72 | - --------------------------------------------------------------------------- | |
73 | - Issue Date: 26/08/2003 | |
74 | - | |
75 | - This file contains the definitions required to use AES in C. See aesopt.h | |
76 | - for optimisation details. | |
77 | - | |
78 | ----- | |
79 | -* bzip2 | |
80 | - This program, "bzip2", the associated library "libbzip2", and all | |
81 | - documentation, are copyright (C) 1996-2010 Julian R Seward. All | |
82 | - rights reserved. | |
83 | - | |
84 | - Redistribution and use in source and binary forms, with or without | |
85 | - modification, are permitted provided that the following conditions | |
86 | - are met: | |
87 | - | |
88 | - 1. Redistributions of source code must retain the above copyright | |
89 | - notice, this list of conditions and the following disclaimer. | |
90 | - | |
91 | - 2. The origin of this software must not be misrepresented; you must | |
92 | - not claim that you wrote the original software. If you use this | |
93 | - software in a product, an acknowledgment in the product | |
94 | - documentation would be appreciated but is not required. | |
95 | - | |
96 | - 3. Altered source versions must be plainly marked as such, and must | |
97 | - not be misrepresented as being the original software. | |
98 | - | |
99 | - 4. The name of the author may not be used to endorse or promote | |
100 | - products derived from this software without specific prior written | |
101 | - permission. | |
102 | - | |
103 | - THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS | |
104 | - OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
105 | - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
106 | - ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | |
107 | - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
108 | - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | |
109 | - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
110 | - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
111 | - WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | |
112 | - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
113 | - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
114 | - | |
115 | - Julian Seward, jseward@bzip.org | |
116 | - bzip2/libbzip2 version 1.0.6 of 6 September 2010 | |
117 | - | |
118 | ----- | |
119 | -* THE IJG JPEG LIBRARY | |
120 | - Copyright (C) 1994-2011, Thomas G. Lane, Guido Vollbeding. | |
121 | - This file is part of the Independent JPEG Group's software. | |
122 | - For conditions of distribution and use, see the accompanying README file. | |
123 | - | |
124 | - | |
125 | - This file describes how to use the IJG JPEG library within an application | |
126 | - program. Read it if you want to write a program that uses the library. | |
127 | - | |
128 | - The file example.c provides heavily commented skeleton code for calling the | |
129 | - JPEG library. Also see jpeglib.h (the include file to be used by application | |
130 | - programs) for full details about data structures and function parameter lists. | |
131 | - The library source code, of course, is the ultimate reference. | |
132 | - | |
133 | - Note that there have been *major* changes from the application interface | |
134 | - presented by IJG version 4 and earlier versions. The old design had several | |
135 | - inherent limitations, and it had accumulated a lot of cruft as we added | |
136 | - features while trying to minimize application-interface changes. We have | |
137 | - sacrificed backward compatibility in the version 5 rewrite, but we think the | |
138 | - improvements justify this. | |
139 | - | |
140 | ----- | |
141 | -* libpng | |
142 | - This code is released under the libpng license. | |
143 | - | |
144 | - libpng versions 1.2.6, August 15, 2004, through 1.5.9, February 18, 2012, are | |
145 | - Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are | |
146 | - distributed according to the same disclaimer and license as libpng-1.2.5 | |
147 | - with the following individual added to the list of Contributing Authors | |
148 | - | |
149 | - Cosmin Truta | |
150 | - | |
151 | - libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, 2002, are | |
152 | - Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are | |
153 | - distributed according to the same disclaimer and license as libpng-1.0.6 | |
154 | - with the following individuals added to the list of Contributing Authors | |
155 | - | |
156 | - Simon-Pierre Cadieux | |
157 | - Eric S. Raymond | |
158 | - Gilles Vollant | |
159 | - | |
160 | - and with the following additions to the disclaimer: | |
161 | - | |
162 | - There is no warranty against interference with your enjoyment of the | |
163 | - library or against infringement. There is no warranty that our | |
164 | - efforts or the library will fulfill any of your particular purposes | |
165 | - or needs. This library is provided with all faults, and the entire | |
166 | - risk of satisfactory quality, performance, accuracy, and effort is with | |
167 | - the user. | |
168 | - | |
169 | - libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are | |
170 | - Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are | |
171 | - distributed according to the same disclaimer and license as libpng-0.96, | |
172 | - with the following individuals added to the list of Contributing Authors: | |
173 | - | |
174 | - Tom Lane | |
175 | - Glenn Randers-Pehrson | |
176 | - Willem van Schaik | |
177 | - | |
178 | - libpng versions 0.89, June 1996, through 0.96, May 1997, are | |
179 | - Copyright (c) 1996, 1997 Andreas Dilger | |
180 | - Distributed according to the same disclaimer and license as libpng-0.88, | |
181 | - with the following individuals added to the list of Contributing Authors: | |
182 | - | |
183 | - John Bowler | |
184 | - Kevin Bracey | |
185 | - Sam Bushell | |
186 | - Magnus Holmgren | |
187 | - Greg Roelofs | |
188 | - Tom Tanner | |
189 | - | |
190 | - libpng versions 0.5, May 1995, through 0.88, January 1996, are | |
191 | - Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. | |
192 | - | |
193 | - For the purposes of this copyright and license, "Contributing Authors" | |
194 | - is defined as the following set of individuals: | |
195 | - | |
196 | - Andreas Dilger | |
197 | - Dave Martindale | |
198 | - Guy Eric Schalnat | |
199 | - Paul Schmidt | |
200 | - Tim Wegner | |
201 | - | |
202 | - The PNG Reference Library is supplied "AS IS". The Contributing Authors | |
203 | - and Group 42, Inc. disclaim all warranties, expressed or implied, | |
204 | - including, without limitation, the warranties of merchantability and of | |
205 | - fitness for any purpose. The Contributing Authors and Group 42, Inc. | |
206 | - assume no liability for direct, indirect, incidental, special, exemplary, | |
207 | - or consequential damages, which may result from the use of the PNG | |
208 | - Reference Library, even if advised of the possibility of such damage. | |
209 | - | |
210 | - Permission is hereby granted to use, copy, modify, and distribute this | |
211 | - source code, or portions hereof, for any purpose, without fee, subject | |
212 | - to the following restrictions: | |
213 | - | |
214 | - 1. The origin of this source code must not be misrepresented. | |
215 | - | |
216 | - 2. Altered versions must be plainly marked as such and must not | |
217 | - be misrepresented as being the original source. | |
218 | - | |
219 | - 3. This Copyright notice may not be removed or altered from any | |
220 | - source or altered source distribution. | |
221 | - | |
222 | - The Contributing Authors and Group 42, Inc. specifically permit, without | |
223 | - fee, and encourage the use of this source code as a component to | |
224 | - supporting the PNG file format in commercial products. If you use this | |
225 | - source code in a product, acknowledgment is not required but would be | |
226 | - appreciated. | |
227 | - | |
228 | ----- | |
229 | -* LZMA Decoder | |
230 | - Igor Pavlov : Public domain | |
231 | - | |
232 | ----- | |
233 | -* zlib | |
234 | - (C) 1995-2012 Jean-loup Gailly and Mark Adler | |
235 | - | |
236 | - This software is provided 'as-is', without any express or implied | |
237 | - warranty. In no event will the authors be held liable for any damages | |
238 | - arising from the use of this software. | |
239 | - | |
240 | - Permission is granted to anyone to use this software for any purpose, | |
241 | - including commercial applications, and to alter it and redistribute it | |
242 | - freely, subject to the following restrictions: | |
243 | - | |
244 | - 1. The origin of this software must not be misrepresented; you must not | |
245 | - claim that you wrote the original software. If you use this software | |
246 | - in a product, an acknowledgment in the product documentation would be | |
247 | - appreciated but is not required. | |
248 | - 2. Altered source versions must be plainly marked as such, and must not be | |
249 | - misrepresented as being the original software. | |
250 | - 3. This notice may not be removed or altered from any source distribution. | |
251 | - | |
252 | - Jean-loup Gailly Mark Adler | |
253 | - jloup@gzip.org madler@alumni.caltech.edu | |
254 | - | |
255 | - If you use the zlib library in a product, we would appreciate *not* receiving | |
256 | - lengthy legal documents to sign. The sources are provided for free but without | |
257 | - warranty of any kind. The library has been entirely written by Jean-loup | |
258 | - Gailly and Mark Adler; it does not include third-party code. | |
259 | - | |
260 | - If you redistribute modified sources, we would appreciate that you include in | |
261 | - the file ChangeLog history information documenting your changes. Please read | |
262 | - the FAQ for more information on the distribution of modified source versions. | |
263 | - | |
264 | ----- | |
265 | -* Mesa 3-D graphics library | |
266 | - Version: 7.6 | |
267 | - | |
268 | - Copyright (C) 1999-2006 Brian Paul All Rights Reserved. | |
269 | - Copyright (C) 2009 VMware, Inc. All Rights Reserved. | |
270 | - | |
271 | - Permission is hereby granted, free of charge, to any person obtaining a | |
272 | - copy of this software and associated documentation files (the "Software"), | |
273 | - to deal in the Software without restriction, including without limitation | |
274 | - the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
275 | - and/or sell copies of the Software, and to permit persons to whom the | |
276 | - Software is furnished to do so, subject to the following conditions: | |
277 | - | |
278 | - The above copyright notice and this permission notice shall be included | |
279 | - in all copies or substantial portions of the Software. | |
280 | - | |
281 | - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
282 | - OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
283 | - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
284 | - BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | |
285 | - AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |
286 | - CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
287 | - | |
288 | ----- | |
289 | -* SGI GLU | |
290 | - SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008) | |
291 | - Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved. | |
292 | - | |
293 | - Permission is hereby granted, free of charge, to any person obtaining a | |
294 | - copy of this software and associated documentation files (the "Software"), | |
295 | - to deal in the Software without restriction, including without limitation | |
296 | - the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
297 | - and/or sell copies of the Software, and to permit persons to whom the | |
298 | - Software is furnished to do so, subject to the following conditions: | |
299 | - | |
300 | - The above copyright notice including the dates of first publication and | |
301 | - either this permission notice or a reference to | |
302 | - http://oss.sgi.com/projects/FreeB/ | |
303 | - shall be included in all copies or substantial portions of the Software. | |
304 | - | |
305 | - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
306 | - OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
307 | - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
308 | - SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
309 | - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF | |
310 | - OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
311 | - SOFTWARE. | |
312 | - | |
313 | - Except as contained in this notice, the name of Silicon Graphics, Inc. | |
314 | - shall not be used in advertising or otherwise to promote the sale, use or | |
315 | - other dealings in this Software without prior written authorization from | |
316 | - Silicon Graphics, Inc. | |
317 | - | |
318 | ----- | |
319 | -* openNURBS | |
320 | - Copyright (c) 1993-2011 Robert McNeel & Associates. All Rights Reserved. | |
321 | - | |
322 | - Permission is hereby granted, free of charge, to any person | |
323 | - obtaining a copy of this software and associated documentation files | |
324 | - (the "Software"), to deal in the Software without restriction, including | |
325 | - without limitation the rights to use, copy, modify, merge, publish, | |
326 | - distribute, sublicense, and/or sell copies of the Software. | |
327 | - | |
328 | - THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR | |
329 | - IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY | |
330 | - PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY | |
331 | - DISCLAIMED. | |
332 | - | |
333 | - openNURBS is a trademark of Robert McNeel & Associates. | |
334 | - Rhinoceros is a registered trademark of Robert McNeel & Associates. |
@@ -0,0 +1,10 @@ | ||
1 | +#include <math.h> | |
2 | +#include <assert.h> | |
3 | +#include <stdio.h> | |
4 | +#ifdef _DEBUG | |
5 | +#define _glu_dprintf printf | |
6 | +#else | |
7 | +#define _glu_dprintf | |
8 | +#endif | |
9 | + | |
10 | +#define OMIT_DRAW |