Skip to content

Commit 535aa96

Browse files
committed
Add imagej-mesh2
This migrates the code from imagej-mesh, without introducing any scijava-common dependency: * Use equivalent scijava-collections classes, not org.scijava.util.*Array. * Use new ArrayIO methods from scijava-testutil, not io.scif.img.IO.
1 parent b8072f4 commit 535aa96

50 files changed

Lines changed: 6075 additions & 39 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

imagej/imagej-mesh2/LICENSE.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2016 - 2022, ImageJ2 developers.
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24+
POSSIBILITY OF SUCH DAMAGE.

imagej/imagej-mesh2/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ImageJ Mesh 2: Common data structures for 3D meshes
2+
3+
This library provides common interfaces for 3D mesh data structures.
4+
For Maven projects, this library can be used by adding to your `pom.xml`:
5+
6+
```java
7+
<dependency>
8+
<groupId>net.imagej</groupId>
9+
<artifactId>imagej-mesh2</artifactId>
10+
<version>0-SNAPSHOT</version>
11+
</dependency>
12+
```

imagej/imagej-mesh2/pom.xml

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<parent>
6+
<groupId>org.scijava</groupId>
7+
<artifactId>scijava-incubator</artifactId>
8+
<version>0-SNAPSHOT</version>
9+
<relativePath>../..</relativePath>
10+
</parent>
11+
12+
<groupId>net.imagej</groupId>
13+
<artifactId>imagej-mesh2</artifactId>
14+
15+
<name>ImageJ Mesh 2</name>
16+
<description>3D mesh structures for ImageJ.</description>
17+
<url>https://imagej.net/ImageJ_Mesh</url>
18+
<inceptionYear>2016</inceptionYear>
19+
<organization>
20+
<name>ImageJ</name>
21+
<url>https://imagej.net/</url>
22+
</organization>
23+
<licenses>
24+
<license>
25+
<name>Simplified BSD License</name>
26+
<distribution>repo</distribution>
27+
</license>
28+
</licenses>
29+
30+
<developers>
31+
<developer>
32+
<id>kephale</id>
33+
<name>Kyle Harrington</name>
34+
<url>https://imagej.net/User:Kharrington</url>
35+
<roles>
36+
<role>founder</role>
37+
<role>lead</role>
38+
<role>developer</role>
39+
<role>debugger</role>
40+
<role>reviewer</role>
41+
<role>support</role>
42+
<role>maintainer</role>
43+
</roles>
44+
</developer>
45+
<developer>
46+
<id>rimadoma</id>
47+
<name>Richard Domander</name>
48+
<url>https://imagej.net/User:Rdom</url>
49+
<roles>
50+
<role>founder</role>
51+
<role>developer</role>
52+
</roles>
53+
</developer>
54+
<developer>
55+
<id>ctrueden</id>
56+
<name>Curtis Rueden</name>
57+
<url>https://imagej.net/people/ctrueden</url>
58+
<roles>
59+
<role>founder</role>
60+
<role>debugger</role>
61+
<role>reviewer</role>
62+
<role>maintainer</role>
63+
</roles>
64+
</developer>
65+
<developer>
66+
<id>tpietzsch</id>
67+
<name>Tobias Pietzsch</name>
68+
<url>https://imagej.net/User:tpietzsch</url>
69+
<roles>
70+
<role>developer</role>
71+
</roles>
72+
</developer>
73+
</developers>
74+
<contributors>
75+
<!--
76+
NB: Need at least one element to override the parent.
77+
See: https://issues.apache.org/jira/browse/MNG-5220
78+
-->
79+
<contributor>
80+
<name>None</name>
81+
</contributor>
82+
</contributors>
83+
84+
<mailingLists>
85+
<mailingList>
86+
<name>Image.sc Forum</name>
87+
<archive>https://forum.image.sc/tag/imagej2</archive>
88+
</mailingList>
89+
</mailingLists>
90+
91+
<scm>
92+
<connection>scm:git:git://github.com/scijava/incubator</connection>
93+
<developerConnection>scm:git:git@github.com:scijava/incubator</developerConnection>
94+
<tag>HEAD</tag>
95+
<url>https://github.com/scijava/incubator</url>
96+
</scm>
97+
<issueManagement>
98+
<system>GitHub Issues</system>
99+
<url>https://github.com/imagej/imagej-mesh2/issues</url>
100+
</issueManagement>
101+
<ciManagement>
102+
<system>GitHub Actions</system>
103+
<url>https://github.com/scijava/incubator/actions</url>
104+
</ciManagement>
105+
106+
<properties>
107+
<package-name>net.imagej.mesh2</package-name>
108+
109+
<license.licenseName>bsd_2</license.licenseName>
110+
<license.copyrightOwners>ImageJ2 developers.</license.copyrightOwners>
111+
<license.projectName>ImageJ2 software for multidimensional image processing and analysis.</license.projectName>
112+
113+
<!-- NB: Deploy releases to the SciJava Maven repository. -->
114+
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
115+
</properties>
116+
117+
<repositories>
118+
<repository>
119+
<id>scijava.public</id>
120+
<url>https://maven.scijava.org/content/groups/public</url>
121+
</repository>
122+
<repository>
123+
<id>imagej.snapshots</id>
124+
<url>https://maven.scijava.org/content/groups/snapshots</url>
125+
</repository>
126+
</repositories>
127+
128+
<dependencies>
129+
<!-- SciJava dependencies -->
130+
<dependency>
131+
<groupId>org.scijava</groupId>
132+
<artifactId>scijava-collections</artifactId>
133+
<version>${project.version}</version>
134+
</dependency>
135+
136+
<!-- ImgLib2 dependencies -->
137+
<dependency>
138+
<groupId>net.imglib2</groupId>
139+
<artifactId>imglib2</artifactId>
140+
</dependency>
141+
142+
<dependency>
143+
<groupId>org.apache.commons</groupId>
144+
<artifactId>commons-math3</artifactId>
145+
</dependency>
146+
147+
<!-- Test scope dependencies -->
148+
<dependency>
149+
<groupId>junit</groupId>
150+
<artifactId>junit</artifactId>
151+
<scope>test</scope>
152+
</dependency>
153+
<dependency>
154+
<groupId>net.imglib2</groupId>
155+
<artifactId>imglib2-roi</artifactId>
156+
<scope>test</scope>
157+
</dependency>
158+
<dependency>
159+
<groupId>org.scijava</groupId>
160+
<artifactId>scijava-testutil</artifactId>
161+
<version>${project.version}</version>
162+
<scope>test</scope>
163+
</dependency>
164+
</dependencies>
165+
</project>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*-
2+
* #%L
3+
* ImageJ2 software for multidimensional image processing and analysis.
4+
* %%
5+
* Copyright (C) 2014 - 2022 ImageJ2 developers.
6+
* %%
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright notice,
11+
* this list of conditions and the following disclaimer.
12+
* 2. Redistributions in binary form must reproduce the above copyright notice,
13+
* this list of conditions and the following disclaimer in the documentation
14+
* and/or other materials provided with the distribution.
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
20+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26+
* POSSIBILITY OF SUCH DAMAGE.
27+
* #L%
28+
*/
29+
module net.imagej.mesh2 {
30+
exports net.imagej.mesh2;
31+
32+
requires net.imglib2;
33+
requires org.scijava.collections;
34+
35+
// FIXME: these module names derive from filenames and are thus unstable
36+
requires commons.math3;
37+
}

0 commit comments

Comments
 (0)