Diff of the two buildlogs: -- --- b1/build.log 2024-05-10 16:58:13.358072895 +0000 +++ b2/build.log 2024-05-10 17:00:35.256023293 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri May 10 04:53:39 -12 2024 -I: pbuilder-time-stamp: 1715360019 +I: Current time: Fri Jun 13 13:21:16 +14 2025 +I: pbuilder-time-stamp: 1749770476 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ dpkg-source: info: unpacking octave-geometry_4.1.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1804527/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 12 23:21 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='d85b882c4ff546139ecf2c2b8bba7e19' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1804527' - PS1='# ' - PS2='> ' + INVOCATION_ID=8eb724d17ce242a88f831ab47b3c565e + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1691760 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.xyiMiFaM/pbuilderrc_reSD --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.xyiMiFaM/b1 --logfile b1/build.log octave-geometry_4.1.0-1.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.xyiMiFaM/pbuilderrc_P3H5 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.xyiMiFaM/b2 --logfile b2/build.log octave-geometry_4.1.0-1.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos11-amd64 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 10 11:25 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1804527/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 10 17:46 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -663,7 +695,7 @@ Get: 546 http://deb.debian.org/debian trixie/main amd64 libxslt1.1 amd64 1.1.35-1+b1 [232 kB] Get: 547 http://deb.debian.org/debian trixie/main amd64 octave-matgeom all 1.2.4-1 [427 kB] Get: 548 http://deb.debian.org/debian trixie/main amd64 python3-lxml amd64 5.1.0-1 [2092 kB] -Fetched 243 MB in 5s (51.5 MB/s) +Fetched 243 MB in 3s (87.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19699 files and directories currently installed.) @@ -2440,8 +2472,8 @@ Setting up tzdata (2024a-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri May 10 16:56:05 UTC 2024. -Universal Time is now: Fri May 10 16:56:05 UTC 2024. +Local time is now: Thu Jun 12 23:22:39 UTC 2025. +Universal Time is now: Thu Jun 12 23:22:39 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up liberror-perl (0.17029-2) ... @@ -2920,7 +2952,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/octave-geometry-4.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../octave-geometry_4.1.0-1_source.changes +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/octave-geometry-4.1.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../octave-geometry_4.1.0-1_source.changes dpkg-buildpackage: info: source package octave-geometry dpkg-buildpackage: info: source version 4.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -2957,14 +2993,14 @@ octave --no-gui --no-history --silent --no-init-file --no-window-system /usr/share/dh-octave/install-pkg.m /build/reproducible-path/octave-geometry-4.1.0/debian/octave-geometry/usr/share/octave/packages /build/reproducible-path/octave-geometry-4.1.0/debian/octave-geometry/usr/lib/x86_64-linux-gnu/octave/packages make[1]: Entering directory '/build/reproducible-path/octave-geometry-4.1.0/src' /usr/bin/mkoctfile --verbose -Wall -mex -g clipper.cpp mexclipper.cpp -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -I. -DMEX_DEBUG clipper.cpp -o /tmp/oct-4hhn4v.o /usr/bin/mkoctfile --verbose -c connector.cpp -o connector.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection connector.cpp -o connector.o /usr/bin/mkoctfile --verbose -c martinez.cpp -o martinez.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection martinez.cpp -o martinez.o /usr/bin/mkoctfile --verbose -c polygon.cpp -o polygon.o -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection polygon.cpp -o polygon.o /usr/bin/mkoctfile --verbose -c utilities.cpp -o utilities.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -I. -DMEX_DEBUG clipper.cpp -o /tmp/oct-5vu2sX.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection connector.cpp -o connector.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection martinez.cpp -o martinez.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection polygon.cpp -o polygon.o g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection utilities.cpp -o utilities.o polygon.cpp:96:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 96 | struct SegmentComp : public binary_function { @@ -2982,20 +3018,14 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from connector.h:13, - from connector.cpp:9: +In file included from martinez.cpp:9: martinez.h:40:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 40 | struct SegmentComp : public binary_function { // for sorting edges in the sweep line | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/string:49, - from /usr/include/c++/13/bits/locale_classes.h:40, - from /usr/include/c++/13/bits/ios_base.h:41, - from /usr/include/c++/13/ios:44, - from /usr/include/c++/13/ostream:40, - from /usr/include/c++/13/iostream:41, - from point.h:16, - from segment.h:16, - from connector.h:12: +In file included from /usr/include/c++/13/bits/refwrap.h:39, + from /usr/include/c++/13/vector:68, + from polygon.h:12, + from martinez.h:12: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3005,14 +3035,20 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -In file included from martinez.cpp:9: +In file included from connector.h:13, + from connector.cpp:9: martinez.h:40:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 40 | struct SegmentComp : public binary_function { // for sorting edges in the sweep line | ^~~~~~~~~~~~~~~ -In file included from /usr/include/c++/13/bits/refwrap.h:39, - from /usr/include/c++/13/vector:68, - from polygon.h:12, - from martinez.h:12: +In file included from /usr/include/c++/13/string:49, + from /usr/include/c++/13/bits/locale_classes.h:40, + from /usr/include/c++/13/bits/ios_base.h:41, + from /usr/include/c++/13/ios:44, + from /usr/include/c++/13/ostream:40, + from /usr/include/c++/13/iostream:41, + from point.h:16, + from segment.h:16, + from connector.h:12: /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ @@ -3023,7 +3059,7 @@ 131 | struct binary_function | ^~~~~~~~~~~~~~~ /usr/bin/mkoctfile --verbose connector.o martinez.o polygon.o utilities.o polybool_mrf.cc -o polybool_mrf.oct -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection polybool_mrf.cc -o /tmp/oct-Fy6qMw.o +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection polybool_mrf.cc -o /tmp/oct-5MhkN3.o In file included from polybool_mrf.cc:21: martinez.h:40:37: warning: 'template struct std::binary_function' is deprecated [-Wdeprecated-declarations] 40 | struct SegmentComp : public binary_function { // for sorting edges in the sweep line @@ -3041,9 +3077,9 @@ /usr/include/c++/13/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ -g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -I. -DMEX_DEBUG mexclipper.cpp -o /tmp/oct-v9A4hF.o -g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -o clipper.mex /tmp/oct-4hhn4v.o /tmp/oct-v9A4hF.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -shared -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro -g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o polybool_mrf.oct connector.o martinez.o polygon.o utilities.o /tmp/oct-Fy6qMw.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -shared -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro +g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -I. -DMEX_DEBUG mexclipper.cpp -o /tmp/oct-ljND82.o +g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -Wall -o clipper.mex /tmp/oct-5vu2sX.o /tmp/oct-ljND82.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -shared -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro +g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2 -ffile-prefix-map=/build/reproducible-path/octave-geometry-4.1.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o polybool_mrf.oct connector.o martinez.o polygon.o utilities.o /tmp/oct-5MhkN3.o -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -shared -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro make[1]: Leaving directory '/build/reproducible-path/octave-geometry-4.1.0/src' copyfile /build/reproducible-path/octave-geometry-4.1.0/./src/polybool_mrf.oct /build/reproducible-path/octave-geometry-4.1.0/./src/clipper.mex /build/reproducible-path/octave-geometry-4.1.0/./inst/x86_64-pc-linux-gnu-api-v58 For information about changes from previous versions of the geometry package, run 'news geometry'. @@ -3058,8 +3094,152 @@ load_packages_and_dependencies at line 56 column 5 load_packages at line 53 column 3 pkg at line 639 column 7 - /tmp/tmp.IpXZJRBGRs at line 9 column 9 + /tmp/tmp.UPhdvmWCJD at line 9 column 9 + +[inst/shapeCentroid.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/shapeCentroid.m +***** demo # non-convex bezier shape + boomerang = {[ 0 -2 1; ... + -4 4 0]; ... + [0.25 -1; ... + 0 0]; ... + [ 0 1.5 -0.75; ... + -3 3 0]; + [0.25 0.75; ... + 0 0]}; + CoM = shapeCentroid (boomerang) + Gcentroid = centroid(shape2polygon(boomerang)) + figure(1); clf; + plotShape(boomerang,'-o'); + hold on + drawPoint(CoM,'xk;shape centroid;'); + drawPoint(Gcentroid,'xr;point centroid;'); + hold off + axis equal +***** demo + Lshape = {[0.00000 0.76635; -0.67579 -0.24067]; ... + [0.77976 0.76635; 0.00000 -0.91646]; ... + [0.00000 1.54611; 0.38614 -0.91646]; ... + [-0.43813 1.54611; 0.00000 -0.53032]; ... + [0.00000 1.10798; 0.28965 -0.53032]; ... + [-0.34163 1.10798; 0.00000 -0.24067]};... + CoM = shapeCentroid (Lshape) + Gcentroid = centroid (shape2polygon (Lshape)) + plotShape(Lshape,'-o'); + hold on + drawPoint(CoM,'xk;shape centroid;'); + drawPoint(Gcentroid,'xr;point centroid;'); + hold off + axis equal +***** test + warning('off', 'geom2d:cw-shape', 'local'); + square = {[1 -0.5; 0 -0.5]; [0 0.5; 1 -0.5]; [-1 0.5; 0 0.5]; [0 -0.5; -1 0.5]}; + CoM = shapeCentroid (square); + assert (CoM, [0 0], sqrt(eps)); +***** test + warning('off', 'geom2d:cw-shape', 'local'); + square = {[1 -0.5; 0 -0.5]; [0 0.5; 1 -0.5]; [-1 0.5; 0 0.5]; [0 -0.5; -1 0.5]}; + square_t = transformShape (square,[1;1]); + CoM = shapeCentroid (square_t); + assert (CoM, [1 1], sqrt(eps)); +***** test + warning('off', 'geom2d:cw-shape', 'local'); + circle = {[1.715729 -6.715729 0 5; ... + -1.715729 -1.568542 8.284271 0]; ... + [1.715729 1.568542 -8.284271 0; ... + 1.715729 -6.715729 0 5]; ... + [-1.715729 6.715729 0 -5; ... + 1.715729 1.568542 -8.284271 0]; ... + [-1.715729 -1.568542 8.284271 0; ... + -1.715729 6.715729 0 -5]}; + CoM = shapeCentroid (circle); + assert (CoM , [0 0], 5e-3); +***** shared shape + shape = {[-93.172 606.368 -476.054 291.429; ... + -431.196 637.253 11.085 163.791]; ... + [-75.3626 -253.2337 457.1678 328.5714; ... + 438.7659 -653.6278 -7.9953 380.9336]; ... + [-89.5841 344.9716 -275.3876 457.1429; ... + -170.3613 237.8858 1.0469 158.0765];... + [32.900 -298.704 145.804 437.143; ... + -243.903 369.597 -34.265 226.648]; ... + [-99.081 409.127 -352.903 317.143; ... + 55.289 -114.223 -26.781 318.076]; ... + [-342.231 191.266 168.108 274.286; ... + 58.870 -38.083 -89.358 232.362]}; +***** test # x-Reflection + warning('off', 'geom2d:cw-shape', 'local'); + v = shapeCentroid (shape)(:); + T = createLineReflection([0 0 1 0]); + nshape = transformShape (shape, T); + vn = shapeCentroid (nshape)(:); + assert(vn,T(1:2,1:2)*v); +***** test # Rotation + warning('off', 'geom2d:cw-shape', 'local'); + v = shapeCentroid (shape)(:); + T = createRotation(v.',pi/2); + nshape = transformShape (shape, T); + vn = shapeCentroid (nshape)(:); + assert(vn,v,1e-2); +***** test # Translation + warning('off', 'geom2d:cw-shape', 'local'); + v = shapeCentroid (shape)(:); + nshape = transformShape (shape, -v); + vn = shapeCentroid (nshape)(:); + assert(vn,[0; 0],1e-2); +6 tests, 6 passed, 0 known failure, 0 skipped +[inst/clipPolygon.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/clipPolygon.m +***** error clipPolygon([],[],[],'abracadabra') +***** error clipPolygon([0 0; 0 1; 0.5 1],[-1 -1; -1 1; 0 1],'no-op') +***** demo + pol1 = [2 2; 6 2; 6 6; 2 6; 2 2; NaN NaN; 3 3; 3 5; 5 5; 5 3; 3 3]; + pol2 = [1 2; 7 4; 4 7; 1 2; NaN NaN; 2.5 3; 5.5 4; 4 5.5; 2.5 3]; + + subplot (3, 3, 1) + drawFilledPolygon (pol1, 'edgecolor', 'k', 'facecolor', 'c') + axis image + title ('1. Subject polygon') + axis off + + subplot (3, 3, 2) + drawFilledPolygon (pol1, 'linestyle', 'none', 'facecolor', 'c') + drawFilledPolygon (pol2, 'edgecolor', 'b', 'facecolor', 'y') + axis image + title ('2. Clip polygon') + axis off + + algo = {'clipper', 'mrf'}; + for i = 1:numel (algo) + subplot (3, 3, i+2); + tic + [opol, npol] = clipPolygon (pol1, pol2, 3, 'clipper'); + printf('%s took: %f seconds (union)\n', algo{i}, toc); + drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') + axis image + title (sprintf('Union - %s', algo{i})); + axis off + + subplot (3, 3, i+4); + tic + [opol, npol] = clipPolygon (pol1, pol2, 1, 'clipper'); + printf('%s took: %f seconds (and)\n', algo{i}, toc); + drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') + axis image + title (sprintf('And - %s', algo{i})); + axis off + + subplot (3, 3, i+6); + tic + [opol, npol] = clipPolygon (pol1, pol2, 2, 'clipper'); + printf('%s took: %f seconds (xor)\n', algo{i}, toc); + drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') + axis image + title (sprintf('Xor - %s', algo{i})); + axis off + endfor +2 tests, 2 passed, 0 known failure, 0 skipped [inst/clipPolygon_mrf.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/clipPolygon_mrf.m ***** test @@ -3199,57 +3379,87 @@ axis off title "7. Clip - sub"; 4 tests, 4 passed, 0 known failure, 0 skipped -[inst/clipPolygon.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/clipPolygon.m -***** error clipPolygon([],[],[],'abracadabra') -***** error clipPolygon([0 0; 0 1; 0.5 1],[-1 -1; -1 1; 0 1],'no-op') -***** demo - pol1 = [2 2; 6 2; 6 6; 2 6; 2 2; NaN NaN; 3 3; 3 5; 5 5; 5 3; 3 3]; - pol2 = [1 2; 7 4; 4 7; 1 2; NaN NaN; 2.5 3; 5.5 4; 4 5.5; 2.5 3]; - - subplot (3, 3, 1) - drawFilledPolygon (pol1, 'edgecolor', 'k', 'facecolor', 'c') - axis image - title ('1. Subject polygon') - axis off - - subplot (3, 3, 2) - drawFilledPolygon (pol1, 'linestyle', 'none', 'facecolor', 'c') - drawFilledPolygon (pol2, 'edgecolor', 'b', 'facecolor', 'y') - axis image - title ('2. Clip polygon') - axis off - - algo = {'clipper', 'mrf'}; - for i = 1:numel (algo) - subplot (3, 3, i+2); - tic - [opol, npol] = clipPolygon (pol1, pol2, 3, 'clipper'); - printf('%s took: %f seconds (union)\n', algo{i}, toc); - drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') - axis image - title (sprintf('Union - %s', algo{i})); - axis off - - subplot (3, 3, i+4); - tic - [opol, npol] = clipPolygon (pol1, pol2, 1, 'clipper'); - printf('%s took: %f seconds (and)\n', algo{i}, toc); - drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') - axis image - title (sprintf('And - %s', algo{i})); - axis off - - subplot (3, 3, i+6); - tic - [opol, npol] = clipPolygon (pol1, pol2, 2, 'clipper'); - printf('%s took: %f seconds (xor)\n', algo{i}, toc); - drawFilledPolygon (opol, 'edgecolor', 'r', 'facecolor', 'g') - axis image - title (sprintf('Xor - %s', algo{i})); - axis off - endfor +[inst/poly2ccw.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/poly2ccw.m +***** test + x = [0 0 1 1 0]; y = [0 1 1 0 0]; + [xccw,yccw] = poly2ccw(x,y); + xexp = [0; 1; 1; 0; 0]; yexp = [0; 0; 1; 1; 0]; + assert (xccw,xexp); + assert (yccw,yexp); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + [xccw,yccw]=poly2ccw(x,y); + xexp=[0; 2; 2; 0; NaN; 0; 2; 0]; + yexp=[0; 0; 2; 2; NaN; 0; 0; 3]; + assert (xccw,xexp); + assert (yccw,yexp); 2 tests, 2 passed, 0 known failure, 0 skipped +[inst/polybool.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polybool.m +***** shared ipol, cpol, ix, iy, cx, cy, xi, yi, xc, yc + ipol = [0 0; 3 0; 3 3; 0 3; 0 0]; + cpol = [2, 1; 5, 1; 5, 4; 2, 4; 2, 1]; + ix = {ipol(:, 1)'}; + iy = {ipol(:, 2)'}; + cx = {cpol(:, 1)'}; + cy = {cpol(:, 2)'}; + xi = {ipol(:, 1)}; + yi = {ipol(:, 2)}; + xc = {cpol(:, 1)}; + yc = {cpol(:, 2)}; +***** test + opol = polybool (0, ipol, cpol); + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + [ox, oy] = polybool (0, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + [ox, oy] = polybool (0, xi, yi, xc, yc); + opol = [ox{1}, oy{1}]; + assert (size (opol), [7, 2]); + assert (polygonArea (opol), 7); +***** test + opol = polybool (1, cpol, ipol); + assert (size (opol), [5, 2]); + assert (polygonArea (opol), 2); +***** test + [ox, oy] = polybool (1, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [5, 2]); + assert (polygonArea (opol), 2); +***** test + opol = polybool (2, cpol, ipol); + assert (size (opol), [15, 2]); + assert (polygonArea (opol), 14); +***** test + [ox, oy] = polybool (2, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [15, 2]); + assert (polygonArea (opol), 14); +***** test + opol = polybool (3, cpol, ipol); + assert (size (opol), [9, 2]); + assert (polygonArea (opol), 16); +***** test + [ox, oy] = polybool (3, ix, iy, cx, cy); + opol = [ox{1}', oy{1}']; + assert (size (opol), [9, 2]); + assert (polygonArea (opol), 16); +***** error polybool ("a", 1, 2, 3 ,4); +***** error polybool (-1, 1, 2); +***** error polybool (-1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4]); +***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3]); +***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3; 6 6 7]); +***** error polybool (1, {1, 2}, [1, 2]); +***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3, 4]}); +***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4, 5]}); +***** error polybool ('z', {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4]}); +***** error polybool (1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4], "abc") +19 tests, 19 passed, 0 known failure, 0 skipped [inst/isPolygonCCW.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/isPolygonCCW.m ***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan @@ -3275,12 +3485,81 @@ ***** xtest assert (isPolygonCCW(pnan,[],"clipper"), [true; false]); ***** xtest assert (isPolygonCCW({pnan,pcw},[],"clipper"),{[true; false], false}); 14 tests, 14 passed, 0 known failure, 0 skipped +[inst/polysplit.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polysplit.m +***** test + x=[1 ;2 ;NaN ;3 ;4]; y=[4 ;3 ;NaN ;2 ;1]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[1; 2];[3; 4]}); + assert (celly, {[4; 3];[2; 1]}); +***** test + x=[1 2 NaN 3 4]; y=[4 3 NaN 2 1]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[1 2];[3 4]}); + assert (celly, {[4 3];[2 1]}); +***** test + x=[0 ;2 ;2 ;0 ;0 ;NaN ;NaN]; y=[0 ;0 ;3 ;3 ;0 ;NaN ;NaN]; + [cellx,celly]=polysplit(x,y); + assert (cellx, {[0 ;2 ;2 ;0 ;0]}); + assert (celly, {[0 ;0 ;3 ;3 ;0]}); +3 tests, 3 passed, 0 known failure, 0 skipped +[inst/poly2cw.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/poly2cw.m +***** test + x = [0; 1; 1; 0; 0]; y = [0; 0; 1; 1; 0]; + [xcw,ycw] = poly2cw(x,y); + xexp = [0; 0; 1; 1; 0]; yexp = [0; 1; 1; 0; 0]; + assert (xcw,xexp); + assert (ycw,yexp); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + [xcw,ycw]=poly2cw(x,y); + xexp=[0; 0; 2; 2; NaN; 0; 0; 2]; + yexp=[0; 2; 2; 0; NaN; 0; 3; 0]; + assert (xcw,xexp); + assert (ycw,yexp); +2 tests, 2 passed, 0 known failure, 0 skipped [inst/polygon2shape.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polygon2shape.m ***** test pp = [0 0; 1 0; 1 1; 0 1]; s = polygon2shape (pp); 1 test, 1 passed, 0 known failure, 0 skipped +[inst/simplifyPolygon_geometry.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/simplifyPolygon_geometry.m +***** test + P = [0 0; 1 0; 0 1]; + P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; + assert(simplifyPolygon_geometry (P2),P,min(P2(:))*eps) +***** demo + + P = [0 0; 1 0; 0 1]; + P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; + Pr = simplifyPolygon_geometry (P2); + + cla + drawPolygon(P,'or;Reference;'); + hold on + drawPolygon(P2,'x-b;Redundant;'); + drawPolygon(Pr,'*g;Simplified;'); + hold off + + # -------------------------------------------------------------------------- + # The two polygons describe the same figure, a triangle. Extra points are + # removed from the redundant one. +1 test, 1 passed, 0 known failure, 0 skipped +[inst/joinPolygons.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/joinPolygons.m +***** test + assert (joinPolygons ({1,2}), [1 2]); +***** test + assert (joinPolygons ({}), []); +***** test + XY = joinPolygons ({[1 6; 2 5; 3 4]; [4 3; 5 2; 6 1]}); + assert (XY, [1 6; 2 5; 3 4; NaN NaN; 4 3; 5 2; 6 1]); +***** error joinPolygons ([1 2 NaN 3 4], [56 NaN 78]) +***** error joinPolygons ({[1,0], [0,2]}); +5 tests, 5 passed, 0 known failure, 0 skipped [inst/plotShape.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/plotShape.m ***** demo @@ -3323,53 +3602,6 @@ ***** test plotShape (s,'-om', 'tol', 1e-4, 'tol', 1e-2);close; 7 tests, 7 passed, 0 known failure, 0 skipped -[inst/shapeArea.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/shapeArea.m -***** demo # non-convex piece-wise polynomial shape - boomerang = {[ 0 -2 1; ... - -4 4 0]; ... - [0.25 -1; ... - 0 0]; ... - [ 0 1.5 -0.75; ... - -3 3 0]; - [0.25 0.75; ... - 0 0]}; - A = shapeArea (boomerang) -***** test - warning('off', 'geom2d:cw-shape', 'local'); - triangle = {[1 0; 0 0]; [-0.5 1; 1 0]; [-0.5 0.5; -1 1]}; - A = shapeArea (triangle); - assert (0.5, A); -***** test - warning('off', 'geom2d:cw-shape', 'local'); - circle = {[1.715729 -6.715729 0 5; ... - -1.715729 -1.568542 8.284271 0]; ... - [1.715729 1.568542 -8.284271 0; ... - 1.715729 -6.715729 0 5]; ... - [-1.715729 6.715729 0 -5; ... - 1.715729 1.568542 -8.284271 0]; ... - [-1.715729 -1.568542 8.284271 0; ... - -1.715729 6.715729 0 -5]}; - A = shapeArea (circle); - assert (pi*5^2, A, 5e-2); -2 tests, 2 passed, 0 known failure, 0 skipped -[inst/ispolyccw.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/ispolyccw.m -***** shared pccw, pcw, ph - pccw = pcw = [0 0; 1 0; 1 1; 0 1]; - pcw([2 4],:) = pcw([4 2], :); - ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; -***** assert (ispolyccw (pccw)); -***** assert (~ispolyccw (pcw)); -***** assert (ispolyccw ({pccw;pcw}), {true false}); -***** assert (ispolyccw(ph),[true;false]); -***** test - phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; - assert (ispolyccw(phcw),[false;true]); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - assert(ispolyccw(x,y),[false;true]); -6 tests, 6 passed, 0 known failure, 0 skipped [inst/polyjoin.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polyjoin.m ***** demo @@ -3408,9 +3640,9 @@ ***** error polyjoin ({1; 2}, [3 4]); ***** warning polyjoin ({1; 2}, {3 4}); 11 tests, 11 passed, 0 known failure, 0 skipped -[inst/shapeCentroid.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/shapeCentroid.m -***** demo # non-convex bezier shape +[inst/shapeArea.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/shapeArea.m +***** demo # non-convex piece-wise polynomial shape boomerang = {[ 0 -2 1; ... -4 4 0]; ... [0.25 -1; ... @@ -3419,42 +3651,12 @@ -3 3 0]; [0.25 0.75; ... 0 0]}; - CoM = shapeCentroid (boomerang) - Gcentroid = centroid(shape2polygon(boomerang)) - figure(1); clf; - plotShape(boomerang,'-o'); - hold on - drawPoint(CoM,'xk;shape centroid;'); - drawPoint(Gcentroid,'xr;point centroid;'); - hold off - axis equal -***** demo - Lshape = {[0.00000 0.76635; -0.67579 -0.24067]; ... - [0.77976 0.76635; 0.00000 -0.91646]; ... - [0.00000 1.54611; 0.38614 -0.91646]; ... - [-0.43813 1.54611; 0.00000 -0.53032]; ... - [0.00000 1.10798; 0.28965 -0.53032]; ... - [-0.34163 1.10798; 0.00000 -0.24067]};... - CoM = shapeCentroid (Lshape) - Gcentroid = centroid (shape2polygon (Lshape)) - - plotShape(Lshape,'-o'); - hold on - drawPoint(CoM,'xk;shape centroid;'); - drawPoint(Gcentroid,'xr;point centroid;'); - hold off - axis equal -***** test - warning('off', 'geom2d:cw-shape', 'local'); - square = {[1 -0.5; 0 -0.5]; [0 0.5; 1 -0.5]; [-1 0.5; 0 0.5]; [0 -0.5; -1 0.5]}; - CoM = shapeCentroid (square); - assert (CoM, [0 0], sqrt(eps)); + A = shapeArea (boomerang) ***** test warning('off', 'geom2d:cw-shape', 'local'); - square = {[1 -0.5; 0 -0.5]; [0 0.5; 1 -0.5]; [-1 0.5; 0 0.5]; [0 -0.5; -1 0.5]}; - square_t = transformShape (square,[1;1]); - CoM = shapeCentroid (square_t); - assert (CoM, [1 1], sqrt(eps)); + triangle = {[1 0; 0 0]; [-0.5 1; 1 0]; [-0.5 0.5; -1 1]}; + A = shapeArea (triangle); + assert (0.5, A); ***** test warning('off', 'geom2d:cw-shape', 'local'); circle = {[1.715729 -6.715729 0 5; ... @@ -3465,184 +3667,9 @@ 1.715729 1.568542 -8.284271 0]; ... [-1.715729 -1.568542 8.284271 0; ... -1.715729 6.715729 0 -5]}; - CoM = shapeCentroid (circle); - assert (CoM , [0 0], 5e-3); -***** shared shape - shape = {[-93.172 606.368 -476.054 291.429; ... - -431.196 637.253 11.085 163.791]; ... - [-75.3626 -253.2337 457.1678 328.5714; ... - 438.7659 -653.6278 -7.9953 380.9336]; ... - [-89.5841 344.9716 -275.3876 457.1429; ... - -170.3613 237.8858 1.0469 158.0765];... - [32.900 -298.704 145.804 437.143; ... - -243.903 369.597 -34.265 226.648]; ... - [-99.081 409.127 -352.903 317.143; ... - 55.289 -114.223 -26.781 318.076]; ... - [-342.231 191.266 168.108 274.286; ... - 58.870 -38.083 -89.358 232.362]}; -***** test # x-Reflection - warning('off', 'geom2d:cw-shape', 'local'); - v = shapeCentroid (shape)(:); - T = createLineReflection([0 0 1 0]); - nshape = transformShape (shape, T); - vn = shapeCentroid (nshape)(:); - assert(vn,T(1:2,1:2)*v); -***** test # Rotation - warning('off', 'geom2d:cw-shape', 'local'); - v = shapeCentroid (shape)(:); - T = createRotation(v.',pi/2); - nshape = transformShape (shape, T); - vn = shapeCentroid (nshape)(:); - assert(vn,v,1e-2); -***** test # Translation - warning('off', 'geom2d:cw-shape', 'local'); - v = shapeCentroid (shape)(:); - nshape = transformShape (shape, -v); - vn = shapeCentroid (nshape)(:); - assert(vn,[0; 0],1e-2); -6 tests, 6 passed, 0 known failure, 0 skipped -[inst/polybool.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polybool.m -***** shared ipol, cpol, ix, iy, cx, cy, xi, yi, xc, yc - ipol = [0 0; 3 0; 3 3; 0 3; 0 0]; - cpol = [2, 1; 5, 1; 5, 4; 2, 4; 2, 1]; - ix = {ipol(:, 1)'}; - iy = {ipol(:, 2)'}; - cx = {cpol(:, 1)'}; - cy = {cpol(:, 2)'}; - xi = {ipol(:, 1)}; - yi = {ipol(:, 2)}; - xc = {cpol(:, 1)}; - yc = {cpol(:, 2)}; -***** test - opol = polybool (0, ipol, cpol); - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - [ox, oy] = polybool (0, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - [ox, oy] = polybool (0, xi, yi, xc, yc); - opol = [ox{1}, oy{1}]; - assert (size (opol), [7, 2]); - assert (polygonArea (opol), 7); -***** test - opol = polybool (1, cpol, ipol); - assert (size (opol), [5, 2]); - assert (polygonArea (opol), 2); -***** test - [ox, oy] = polybool (1, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [5, 2]); - assert (polygonArea (opol), 2); -***** test - opol = polybool (2, cpol, ipol); - assert (size (opol), [15, 2]); - assert (polygonArea (opol), 14); -***** test - [ox, oy] = polybool (2, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [15, 2]); - assert (polygonArea (opol), 14); -***** test - opol = polybool (3, cpol, ipol); - assert (size (opol), [9, 2]); - assert (polygonArea (opol), 16); -***** test - [ox, oy] = polybool (3, ix, iy, cx, cy); - opol = [ox{1}', oy{1}']; - assert (size (opol), [9, 2]); - assert (polygonArea (opol), 16); -***** error polybool ("a", 1, 2, 3 ,4); -***** error polybool (-1, 1, 2); -***** error polybool (-1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4]); -***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3]); -***** error polybool (1, [0 0 0; 2 2 2; 5 5 5], [1 1 1; 3 3 3; 6 6 7]); -***** error polybool (1, {1, 2}, [1, 2]); -***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3, 4]}); -***** error polybool (1, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4, 5]}); -***** error polybool ('z', {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 3]}, {[1, 2, 4]}); -***** error polybool (1, [1 1; 2 2; 3 3], [2 2; 3 3; 4 4], "abc") -19 tests, 19 passed, 0 known failure, 0 skipped -[inst/ispolycw.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/ispolycw.m -***** shared pccw, pcw, ph - pccw = pcw = [0 0; 1 0; 1 1; 0 1]; - pcw([2 4],:) = pcw([4 2], :); - ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; -***** assert (~ispolycw (pccw)); -***** assert (ispolycw (pcw)); -***** assert (ispolycw ({pccw;pcw}), [false;true]); -***** assert (ispolycw ({pccw,pcw}), [false,true]); -***** assert (ispolycw ({pccw(:, 1);pcw(:, 1)}, {pccw(:, 2);pcw(:, 2)}), [false;true]); -***** assert (ispolycw ({pccw(:, 1),pcw(:, 1)}, {pccw(:, 2),pcw(:, 2)}), [false,true]); -***** assert (ispolycw(ph),[false;true]); -***** test - phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; - assert (ispolycw(phcw),[true;false]); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - assert(ispolycw(x,y),[true;false]); -9 tests, 9 passed, 0 known failure, 0 skipped -[inst/poly2cw.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/poly2cw.m -***** test - x = [0; 1; 1; 0; 0]; y = [0; 0; 1; 1; 0]; - [xcw,ycw] = poly2cw(x,y); - xexp = [0; 0; 1; 1; 0]; yexp = [0; 1; 1; 0; 0]; - assert (xcw,xexp); - assert (ycw,yexp); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - [xcw,ycw]=poly2cw(x,y); - xexp=[0; 0; 2; 2; NaN; 0; 0; 2]; - yexp=[0; 2; 2; 0; NaN; 0; 3; 0]; - assert (xcw,xexp); - assert (ycw,yexp); + A = shapeArea (circle); + assert (pi*5^2, A, 5e-2); 2 tests, 2 passed, 0 known failure, 0 skipped -[inst/polysplit.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/polysplit.m -***** test - x=[1 ;2 ;NaN ;3 ;4]; y=[4 ;3 ;NaN ;2 ;1]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[1; 2];[3; 4]}); - assert (celly, {[4; 3];[2; 1]}); -***** test - x=[1 2 NaN 3 4]; y=[4 3 NaN 2 1]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[1 2];[3 4]}); - assert (celly, {[4 3];[2 1]}); -***** test - x=[0 ;2 ;2 ;0 ;0 ;NaN ;NaN]; y=[0 ;0 ;3 ;3 ;0 ;NaN ;NaN]; - [cellx,celly]=polysplit(x,y); - assert (cellx, {[0 ;2 ;2 ;0 ;0]}); - assert (celly, {[0 ;0 ;3 ;3 ;0]}); -3 tests, 3 passed, 0 known failure, 0 skipped -[inst/simplifyPolygon_geometry.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/simplifyPolygon_geometry.m -***** test - P = [0 0; 1 0; 0 1]; - P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; - assert(simplifyPolygon_geometry (P2),P,min(P2(:))*eps) -***** demo - - P = [0 0; 1 0; 0 1]; - P2 = [0 0; 0.1 0; 0.2 0; 0.25 0; 1 0; 0 1; 0 0.7; 0 0.6; 0 0.3; 0 0.1]; - Pr = simplifyPolygon_geometry (P2); - - cla - drawPolygon(P,'or;Reference;'); - hold on - drawPolygon(P2,'x-b;Redundant;'); - drawPolygon(Pr,'*g;Simplified;'); - hold off - - # -------------------------------------------------------------------------- - # The two polygons describe the same figure, a triangle. Extra points are - # removed from the redundant one. -1 test, 1 passed, 0 known failure, 0 skipped [inst/orientPolygon.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/orientPolygon.m ***** shared pccw, pcw, pxccw, pyccw, pxnan, pynan, pnan @@ -3682,6 +3709,43 @@ [x y] = orientPolygon (pxccw,pyccw,"cw"); assert ([x y], pcw); 8 tests, 8 passed, 0 known failure, 0 skipped +[inst/ispolycw.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/ispolycw.m +***** shared pccw, pcw, ph + pccw = pcw = [0 0; 1 0; 1 1; 0 1]; + pcw([2 4],:) = pcw([4 2], :); + ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; +***** assert (~ispolycw (pccw)); +***** assert (ispolycw (pcw)); +***** assert (ispolycw ({pccw;pcw}), [false;true]); +***** assert (ispolycw ({pccw,pcw}), [false,true]); +***** assert (ispolycw ({pccw(:, 1);pcw(:, 1)}, {pccw(:, 2);pcw(:, 2)}), [false;true]); +***** assert (ispolycw ({pccw(:, 1),pcw(:, 1)}, {pccw(:, 2),pcw(:, 2)}), [false,true]); +***** assert (ispolycw(ph),[false;true]); +***** test + phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; + assert (ispolycw(phcw),[true;false]); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + assert(ispolycw(x,y),[true;false]); +9 tests, 9 passed, 0 known failure, 0 skipped +[inst/ispolyccw.m] +>>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/ispolyccw.m +***** shared pccw, pcw, ph + pccw = pcw = [0 0; 1 0; 1 1; 0 1]; + pcw([2 4],:) = pcw([4 2], :); + ph = [pccw; nan(1,2); 0.5*pcw+[0.25 0.25]]; +***** assert (ispolyccw (pccw)); +***** assert (~ispolyccw (pcw)); +***** assert (ispolyccw ({pccw;pcw}), {true false}); +***** assert (ispolyccw(ph),[true;false]); +***** test + phcw = [pcw; nan(1,2); 0.5*pccw+[0.25 0.25]]; + assert (ispolyccw(phcw),[false;true]); +***** test + x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; + assert(ispolyccw(x,y),[false;true]); +6 tests, 6 passed, 0 known failure, 0 skipped [inst/@svg/svg.m] >>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/@svg/svg.m ***** xtest @@ -3704,34 +3768,6 @@ dc.plot(); dc.plot('color','r','linewidth',2); 4 tests, 3 passed, 1 known failure, 0 skipped -[inst/poly2ccw.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/poly2ccw.m -***** test - x = [0 0 1 1 0]; y = [0 1 1 0 0]; - [xccw,yccw] = poly2ccw(x,y); - xexp = [0; 1; 1; 0; 0]; yexp = [0; 0; 1; 1; 0]; - assert (xccw,xexp); - assert (yccw,yexp); -***** test - x=[0 0 2 2 NaN 0 2 0]; y=[0 2 2 0 NaN 0 0 3]; - [xccw,yccw]=poly2ccw(x,y); - xexp=[0; 2; 2; 0; NaN; 0; 2; 0]; - yexp=[0; 0; 2; 2; NaN; 0; 0; 3]; - assert (xccw,xexp); - assert (yccw,yexp); -2 tests, 2 passed, 0 known failure, 0 skipped -[inst/joinPolygons.m] ->>>>> /build/reproducible-path/octave-geometry-4.1.0/inst/joinPolygons.m -***** test - assert (joinPolygons ({1,2}), [1 2]); -***** test - assert (joinPolygons ({}), []); -***** test - XY = joinPolygons ({[1 6; 2 5; 3 4]; [4 3; 5 2; 6 1]}); - assert (XY, [1 6; 2 5; 3 4; NaN NaN; 4 3; 5 2; 6 1]); -***** error joinPolygons ([1 2 NaN 3 4], [56 NaN 78]) -***** error joinPolygons ({[1,0], [0,2]}); -5 tests, 5 passed, 0 known failure, 0 skipped Checking C++ files ... Done running the unit tests. Summary: 106 tests, 105 passed, 1 known failures, 0 skipped @@ -3773,12 +3809,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1691760/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1804527 and its subdirectories -I: Current time: Fri May 10 04:58:12 -12 2024 -I: pbuilder-time-stamp: 1715360292 +I: removing directory /srv/workspace/pbuilder/1691760 and its subdirectories +I: Current time: Fri Jun 13 13:23:34 +14 2025 +I: pbuilder-time-stamp: 1749770614