math/rapid: Remove port
Niche use case, not aligned with broad server application needs
This commit is contained in:
@@ -4111,6 +4111,7 @@ math/R-cran-eRm
|
||||
math/R-cran-hdrcde
|
||||
math/R-cran-NMF
|
||||
math/R-cran-psych
|
||||
math/rapid
|
||||
math/rkward
|
||||
math/rocs
|
||||
math/rpcalc
|
||||
|
||||
@@ -948,7 +948,6 @@
|
||||
SUBDIR += qxfun
|
||||
SUBDIR += randlib
|
||||
SUBDIR += rankwidth
|
||||
SUBDIR += rapid
|
||||
SUBDIR += readstat
|
||||
SUBDIR += reduce
|
||||
SUBDIR += reduce-psl
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
PORTNAME= rapid
|
||||
PORTVERSION= 2.01
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= math science graphics
|
||||
MASTER_SITES= http://www.cs.sunysb.edu/~algorith/implement/RAPID/distrib/
|
||||
DISTNAME= RAPID_v2_01
|
||||
|
||||
MAINTAINER= jwb@FreeBSD.org
|
||||
COMMENT= Robust and Accurate Polygon Interference Detection
|
||||
WWW= http://www.cs.unc.edu/~geom/OBB/OBBT.html
|
||||
|
||||
LICENSE= UNKNOWN
|
||||
LICENSE_NAME= unknown
|
||||
LICENSE_TEXT= For any commercial purpose, you must request a license from \
|
||||
http://www.cs.unc.edu/~geom/OBB/OBBT.html
|
||||
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell no-pkg-mirror \
|
||||
auto-accept
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
ALL_TARGET=
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
MAKE_ENV+= V=1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-extract:
|
||||
${REINPLACE_CMD} -E "s/friend RAPID_Collide/friend int RAPID_Collide/" ${WRKSRC}/RAPID_private.H
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/include/RAPID
|
||||
${INSTALL_DATA} ${WRKSRC}/*.H ${STAGEDIR}${PREFIX}/include/RAPID
|
||||
${INSTALL_DATA} ${WRKSRC}/libRAPID.a ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_MAN} ${FILESDIR}/rapid.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (RAPID_v2_01.tar.gz) = f924759b9fe144a2ed40fab54047d3bad091ff2ee857e81b70e1b466dde91143
|
||||
SIZE (RAPID_v2_01.tar.gz) = 24123
|
||||
@@ -1,9 +0,0 @@
|
||||
--- Makefile.orig 1997-07-03 16:54:09 UTC
|
||||
+++ Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-CC = CC -O
|
||||
+CC = $(CXX) -O
|
||||
|
||||
CFLAGS = -I. -I..
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- RAPID.C.orig 2018-05-16 10:56:45 UTC
|
||||
+++ RAPID.C
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "RAPID_version.H"
|
||||
|
||||
-static char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__;
|
||||
+static char rapidtag_data[] = "RAPIDTAG file: " __FILE__ " date: " __DATE__ " time: " __TIME__;
|
||||
|
||||
// to silence the compiler's complaints about unreferenced identifiers.
|
||||
static void r1(char *f){ r1(f); r1(rapidtag_data); r1(rapid_version);}
|
||||
@@ -1,22 +0,0 @@
|
||||
--- build.C.orig 1997-07-03 16:54:10 UTC
|
||||
+++ build.C
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "RAPID_version.H"
|
||||
|
||||
-static char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__;
|
||||
+static char rapidtag_data[] = "RAPIDTAG file: " __FILE__ " date: " __DATE__ " time: " __TIME__;
|
||||
|
||||
// to silence the compiler's complaints about unreferenced identifiers.
|
||||
static void r1(char *f){ r1(f); r1(rapidtag_data); r1(rapid_version);}
|
||||
@@ -419,8 +419,8 @@ box::split_recurse(int *t, int n)
|
||||
// see where it lies with respect to axdmp.
|
||||
mean_from_moment(c, RAPID_moment[in]);
|
||||
|
||||
- if (((pR[0][0]*c[0] + pR[1][0]*c[1] + pR[2][0]*c[2]) < axdmp)
|
||||
- && ((n!=2)) || ((n==2) && (i==0)))
|
||||
+ if ( (( (pR[0][0]*c[0] + pR[1][0]*c[1] + pR[2][0]*c[2]) < axdmp)
|
||||
+ && (n!=2)) || ((n==2) && (i==0)) )
|
||||
{
|
||||
// accumulate first and second order moments for group 1
|
||||
accum_moment(M1, RAPID_moment[in]);
|
||||
@@ -1,11 +0,0 @@
|
||||
--- collide.C.orig 2018-05-16 10:58:09 UTC
|
||||
+++ collide.C
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "RAPID_version.H"
|
||||
|
||||
-static char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__;
|
||||
+static char rapidtag_data[] = "RAPIDTAG file: " __FILE__ " date: " __DATE__ " time: " __TIME__;
|
||||
|
||||
// to silence the compiler's complaints about unreferenced identifiers.
|
||||
static void r1(char *f){ r1(f); r1(rapidtag_data); r1(rapid_version);}
|
||||
@@ -1,22 +0,0 @@
|
||||
--- overlap.C.orig 2018-05-16 10:58:45 UTC
|
||||
+++ overlap.C
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "RAPID_version.H"
|
||||
|
||||
-static char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__;
|
||||
+static char rapidtag_data[] = "RAPIDTAG file: " __FILE__ " date: " __DATE__ " time: " __TIME__;
|
||||
|
||||
// to silence the compiler's complaints about unreferenced identifiers.
|
||||
static void r1(char *f){ r1(f); r1(rapidtag_data); r1(rapid_version);}
|
||||
@@ -221,8 +221,8 @@ models.
|
||||
int
|
||||
obb_disjoint(double B[3][3], double T[3], double a[3], double b[3])
|
||||
{
|
||||
- register double t, s;
|
||||
- register int r;
|
||||
+ double t, s;
|
||||
+ int r;
|
||||
double Bf[3][3];
|
||||
const double reps = 1e-6;
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- sample_client.C.orig 1997-07-03 16:54:09 UTC
|
||||
+++ sample_client.C
|
||||
@@ -42,7 +42,7 @@
|
||||
#define LISTS 0
|
||||
|
||||
|
||||
-main()
|
||||
+int main()
|
||||
{
|
||||
// first, get a couple of boxes in which to put our models
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
[
|
||||
{ type: install
|
||||
message: <<EOM
|
||||
The RAPID code is offered "as is" and is free for non-commercial use.
|
||||
|
||||
To use RAPID for any commercial purpose, you must request a license from
|
||||
|
||||
http://www.cs.unc.edu/~geom/OBB/OBBT.html
|
||||
|
||||
Redistribution of RAPID code in any form is strictly prohibited.
|
||||
EOM
|
||||
}
|
||||
]
|
||||
@@ -1,102 +0,0 @@
|
||||
.TH RAPID 1
|
||||
.SH NAME \" Section header
|
||||
.PP
|
||||
|
||||
RAPID -- Robust and Accurate Polygon Interference Detection
|
||||
|
||||
\" Convention:
|
||||
\" Underline anything that is typed verbatim - commands, etc.
|
||||
.SH SYNOPSIS
|
||||
.PP
|
||||
.nf
|
||||
.na
|
||||
#include <RAPID/RAPID.H>
|
||||
c++ -I/usr/local/include program.c++ -L/usr/local/lib -lRAPID -lm
|
||||
.ad
|
||||
.fi
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
|
||||
.B RAPID
|
||||
is a robust and accurate polygon interference detection library for
|
||||
large environments composed of unstructured models.
|
||||
|
||||
It is applicable to polygon soups - models which contain no adjacency
|
||||
information, and obey no topological constraints. The models may
|
||||
contain cracks, holes, self-intersections, and nongeneric (e.g.
|
||||
coplanar and collinear) configurations.
|
||||
|
||||
It is numericaly robust - the algorithm is not subject to conditioning
|
||||
problems, and requires no special handling of nongeneric cases (such as
|
||||
parallel faces).
|
||||
|
||||
The RAPID library is free for non-commercial use. Please use this
|
||||
request form to download the latest version. It has a very simple user
|
||||
interface: the user need noncommerial use. be familiar with only about
|
||||
five function calls. A C++ sample client program illustrates its use.
|
||||
|
||||
The current version of RAPID is version 2.01. The previous version was
|
||||
1.04 - the change in version designation from 1.xx to 2.xx reflects a
|
||||
moderate alteration in the library's interface (mostly just name
|
||||
changes). The following changes from version 1.04 have been made:
|
||||
|
||||
Use include file "RAPID.H": The RAPID API now requires only that you
|
||||
include "RAPID.H" and link to "libRAPID.a" to be able to use the
|
||||
library.
|
||||
|
||||
Standalone library: RAPID no longer uses the SVM library. RAPID only
|
||||
depends on the standard math library, "libm.a", which you probably link
|
||||
to anyway.
|
||||
|
||||
Use object "RAPID_model" instead of "box": The C++ object into which
|
||||
you load polygons is now called "RAPID_model". Previous versions used
|
||||
"box," which was a holdover from prerelease implementations, and was
|
||||
not a suitable identifier for the API.
|
||||
|
||||
Consistent use of "RAPID_" prefix: All the globals, such as those
|
||||
which began with "OBBT_" now use the prefix "RAPID_". Note, also, that
|
||||
the old constants "ALL_CONTACTS" and "FIRST_CONTACT" have been replaced
|
||||
with the symbols "RAPID_ALL_CONSTACTS" and "RAPID_FIRST_CONTACT" in
|
||||
RAPID 2.00.
|
||||
|
||||
No explicit library initialization: Previous versions required the
|
||||
client to call 'box::initialize()' before any other RAPID library call.
|
||||
This was a common but unnecessary source of client bugs (people forgot
|
||||
to call this routine). RAPID 2.00 no longer requires this, since all
|
||||
API routines check to see if the library has been initialized. This
|
||||
extra check has had a negligible performance impact.
|
||||
|
||||
Revision of model construction interface: RAPID 2.00 requires calls to
|
||||
BeginModel() and EndModel() to enclose the AddTri() calls for building
|
||||
objects. This more resembles the OpenGL interface, with which many
|
||||
clients will likely be familiar. Generally, preprocessing of the
|
||||
objects will take place when EndModel() is called. Later versions of
|
||||
RAPID will allow special procedures to be placed after the BeginModel()
|
||||
call but before the first AddTri() call to give the client more control
|
||||
over how the models are preprocessed.
|
||||
|
||||
Faster preprocessing: The preprocessing for RAPID has been greatly
|
||||
improved in terms of speed. RAPID 2.00 is generally 5 times faster than
|
||||
previous versions in preprocessing models. The quality of the
|
||||
hierarchies have theoretically been affected, in some ways for the
|
||||
better and in some ways for the worse, but we have not conducted a
|
||||
thorough study to gauge overall impact of our changes. In a later
|
||||
release, we intend to provide an alternative preprocessing algorithm
|
||||
which will be computationally expensive but which will build better
|
||||
hierarchies.
|
||||
|
||||
No support for plain C: Some clients may not consider this an
|
||||
improvement, but support for plain C has been discontinued. Of course,
|
||||
clients are still able to construct their own plain C wrappers for the
|
||||
C++ functions in RAPID. This change has made the implementation of
|
||||
RAPID more clean.
|
||||
|
||||
.SH "SEE ALSO"
|
||||
dtiquery(1)
|
||||
|
||||
.SH AUTHOR
|
||||
.nf
|
||||
.na
|
||||
UNC Research Group on Modeling
|
||||
http://www.cs.unc.edu/~geom/OBB/OBBT.html
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
RAPID is a robust and accurate polygon interference detection library for
|
||||
large environments composed of unstructured models.
|
||||
|
||||
**************************************************************************
|
||||
|
||||
The RAPID code is offered "as is" and is free for non-commercial use.
|
||||
|
||||
To use RAPID for any commercial purpose, you must request a license.
|
||||
|
||||
**************************************************************************
|
||||
@@ -1,9 +0,0 @@
|
||||
include/RAPID/RAPID.H
|
||||
include/RAPID/RAPID_private.H
|
||||
include/RAPID/RAPID_version.H
|
||||
include/RAPID/matvec.H
|
||||
include/RAPID/moments.H
|
||||
include/RAPID/obb.H
|
||||
include/RAPID/overlap.H
|
||||
lib/libRAPID.a
|
||||
share/man/man1/rapid.1.gz
|
||||
Reference in New Issue
Block a user