diff --git a/CONTRIBUTORS b/CONTRIBUTORS new file mode 100644 index 0000000..a360998 --- /dev/null +++ b/CONTRIBUTORS @@ -0,0 +1,8 @@ +Primary Contributors: + + Mason Green (C++) + Thomas Åhlén (Java) + +Other Contrbutions: + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9417c08 --- /dev/null +++ b/LICENSE @@ -0,0 +1,27 @@ +Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors +http://code.google.com/p/poly2tri/ + +All rights reserved. +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +* Neither the name of Poly2Tri nor the names of its contributors may be + used to endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/poly2tri/common/shapes.cc b/poly2tri/common/shapes.cc index c5f0562..41cf662 100644 --- a/poly2tri/common/shapes.cc +++ b/poly2tri/common/shapes.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/common/shapes.h b/poly2tri/common/shapes.h index e349b30..9d2c09c 100644 --- a/poly2tri/common/shapes.h +++ b/poly2tri/common/shapes.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. @@ -28,6 +28,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + // Include guard #ifndef SHAPES_H #define SHAPES_H diff --git a/poly2tri/common/utils.h b/poly2tri/common/utils.h index a91377a..c01f574 100644 --- a/poly2tri/common/utils.h +++ b/poly2tri/common/utils.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. @@ -28,6 +28,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #ifndef UTILS_H #define UTILS_H diff --git a/poly2tri/poly2tri.h b/poly2tri/poly2tri.h index 843ea33..cc4936c 100644 --- a/poly2tri/poly2tri.h +++ b/poly2tri/poly2tri.h @@ -1,2 +1,32 @@ +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors + * http://code.google.com/p/poly2tri/ + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * * Neither the name of Poly2Tri nor the names of its contributors may be + * used to endorse or promote products derived from this software without specific + * prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ #include "common/shapes.h" #include "sweep/cdt.h" diff --git a/poly2tri/sweep/advancing_front.cc b/poly2tri/sweep/advancing_front.cc index db5b479..4a1e2b5 100644 --- a/poly2tri/sweep/advancing_front.cc +++ b/poly2tri/sweep/advancing_front.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/advancing_front.h b/poly2tri/sweep/advancing_front.h index 71e9eaa..33117b9 100644 --- a/poly2tri/sweep/advancing_front.h +++ b/poly2tri/sweep/advancing_front.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/cdt.cc b/poly2tri/sweep/cdt.cc index c2523ba..be027cf 100644 --- a/poly2tri/sweep/cdt.cc +++ b/poly2tri/sweep/cdt.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/cdt.h b/poly2tri/sweep/cdt.h index fe8617a..ebee8ab 100644 --- a/poly2tri/sweep/cdt.h +++ b/poly2tri/sweep/cdt.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/mesh.cc b/poly2tri/sweep/mesh.cc index 18616cf..aa31f52 100644 --- a/poly2tri/sweep/mesh.cc +++ b/poly2tri/sweep/mesh.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/mesh.h b/poly2tri/sweep/mesh.h index e8f1ee8..be31e13 100644 --- a/poly2tri/sweep/mesh.h +++ b/poly2tri/sweep/mesh.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/sweep.cc b/poly2tri/sweep/sweep.cc index d7e5585..66d5a72 100644 --- a/poly2tri/sweep/sweep.cc +++ b/poly2tri/sweep/sweep.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/sweep.h b/poly2tri/sweep/sweep.h index a84732f..66bb06a 100644 --- a/poly2tri/sweep/sweep.h +++ b/poly2tri/sweep/sweep.h @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/poly2tri/sweep/sweep_context.cc b/poly2tri/sweep/sweep_context.cc index c77730a..0194200 100644 --- a/poly2tri/sweep/sweep_context.cc +++ b/poly2tri/sweep/sweep_context.cc @@ -1,5 +1,34 @@ +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors + * http://code.google.com/p/poly2tri/ + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * * Neither the name of Poly2Tri nor the names of its contributors may be + * used to endorse or promote products derived from this software without specific + * prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ #include "sweep_context.h" - #include #include #include "advancing_front.h" diff --git a/poly2tri/sweep/sweep_context.h b/poly2tri/sweep/sweep_context.h index 7e18233..9308639 100644 --- a/poly2tri/sweep/sweep_context.h +++ b/poly2tri/sweep/sweep_context.h @@ -1,5 +1,5 @@ -/* Poly2Tri - * Copyright (c) 2009-2010, Poly2Tri Contributors +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved. diff --git a/testbed/main.cc b/testbed/main.cc index 6061c29..091913d 100644 --- a/testbed/main.cc +++ b/testbed/main.cc @@ -1,5 +1,5 @@ -/* - * Poly2Tri Copyright (c) 2009-2010, Mason Green +/* + * Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * All rights reserved.