2007-11-04 03:51:54 +00:00
|
|
|
// Requries parts of the q3 tools source to compile
|
|
|
|
// Date: Oct 5, 2001
|
|
|
|
// Written by: Brad Whitehead (whiteheb@gamerstv.net)
|
|
|
|
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "dialogs/dialogs-gtk.h"
|
|
|
|
#include "DWinding.h"
|
|
|
|
#include "bsploader.h"
|
|
|
|
|
|
|
|
typedef struct {
|
2012-03-17 20:01:54 +00:00
|
|
|
int portalclusters;
|
|
|
|
int leafbytes; //leafbytes = ((portalclusters+63)&~63)>>3;
|
2007-11-04 03:51:54 +00:00
|
|
|
} vis_header;
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
// added because int shift = 32; i = 0xFFFFFFFF >> shift;
|
2007-11-04 03:51:54 +00:00
|
|
|
// then i = 0xFFFFFFFF, when it should = 0
|
|
|
|
const unsigned long bitmasks[33] =
|
|
|
|
{
|
|
|
|
0x00000000,
|
|
|
|
0x00000001, 0x00000003, 0x00000007, 0x0000000F,
|
|
|
|
0x0000001F, 0x0000003F, 0x0000007F, 0x000000FF,
|
|
|
|
0x000001FF, 0x000003FF, 0x000007FF, 0x00000FFF,
|
|
|
|
0x00001FFF, 0x00003FFF, 0x00007FFF, 0x0000FFFF,
|
|
|
|
0x0001FFFF, 0x0003FFFF, 0x0007FFFF, 0x000FFFFF,
|
|
|
|
0x001FFFFF, 0x003FFFFF, 0x007FFFFF, 0x00FFFFFF,
|
|
|
|
0x01FFFFFF, 0x03FFFFFF, 0x07FFFFFF, 0x0FFFFFFF,
|
|
|
|
0x1FFFFFFF, 0x3FFFFFFF, 0x7FFFFFFF, 0xFFFFFFFF
|
|
|
|
};
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
int bsp_leafnumfororigin( vec3_t origin ){
|
|
|
|
dnode_t *node;
|
|
|
|
dplane_t *plane;
|
|
|
|
float d;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
// TODO: check if origin is in the map??
|
|
|
|
|
|
|
|
node = dnodes;
|
2012-03-17 20:01:54 +00:00
|
|
|
while ( true )
|
2007-11-04 03:51:54 +00:00
|
|
|
{
|
|
|
|
plane = &dplanes[node->planeNum];
|
2012-03-17 20:01:54 +00:00
|
|
|
d = DotProduct( origin, plane->normal ) - plane->dist;
|
|
|
|
if ( d >= 0 ) {
|
|
|
|
if ( node->children[0] < 0 ) {
|
|
|
|
return -( node->children[0] + 1 );
|
|
|
|
}
|
|
|
|
else{
|
2007-11-04 03:51:54 +00:00
|
|
|
node = &dnodes[node->children[0]];
|
2012-03-17 20:01:54 +00:00
|
|
|
}
|
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
else
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( node->children[1] < 0 ) {
|
|
|
|
return -( node->children[1] + 1 );
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
node = &dnodes[node->children[1]];
|
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
int bsp_leafnumforcluster( int cluster ){
|
2007-11-04 03:51:54 +00:00
|
|
|
dleaf_t *l;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for ( i = 0, l = dleafs; i < numleafs; i++, l++ )
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( l->cluster == cluster ) {
|
|
|
|
return( i );
|
|
|
|
}
|
|
|
|
return( 0 );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// leaf1 = origin leaf
|
|
|
|
// leaf2 = leaf to test for
|
|
|
|
/*int bsp_InPVS(int cluster1, int cluster2)
|
2012-03-17 20:01:54 +00:00
|
|
|
{
|
|
|
|
vis_header *vheader;
|
|
|
|
byte *visdata;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
vheader = (vis_header *) visBytes;
|
|
|
|
visdata = visBytes + VIS_HEADER_SIZE;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
return( *( visdata + ( cluster1 * vheader->leafbytes ) + (cluster2 / 8) ) & ( 1 << ( cluster2 % 8 ) ) );
|
|
|
|
}*/
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
void bsp_setbitvectorlength( byte *v, int length_bits, int length_vector ){
|
2007-11-04 03:51:54 +00:00
|
|
|
int i;
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
i = length_bits / 8;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
*( v + i ) = (byte) bitmasks[length_bits % 8];
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
memset( ( v + i + 1 ), 0, length_vector - i - 1 );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
void bsp_bitvectorsubtract( byte *first, byte *second, byte *out, int length ){
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for ( i = 0; i < length; i++ )
|
2012-03-17 20:01:54 +00:00
|
|
|
*( out + i ) = *( first + i ) & ~( *( second + i ) );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
int bsp_countclusters( byte *bitvector, int length ){
|
2007-11-04 03:51:54 +00:00
|
|
|
int i, j, c;
|
|
|
|
|
|
|
|
c = 0;
|
|
|
|
for ( i = 0; i < length; i++ )
|
|
|
|
for ( j = 0; j < 8; j++ )
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( ( *( bitvector + i ) & ( 1 << j ) ) ) {
|
|
|
|
c++;
|
|
|
|
}
|
|
|
|
return( c );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
int bsp_countclusters_mask( byte *bitvector, byte *maskvector, int length ){
|
2007-11-04 03:51:54 +00:00
|
|
|
int i, j, c;
|
|
|
|
|
|
|
|
c = 0;
|
|
|
|
for ( i = 0; i < length; i++ )
|
|
|
|
for ( j = 0; j < 8; j++ )
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( ( *( bitvector + i ) & ( 1 << j ) ) && ( *( maskvector + i ) & ( 1 << j ) ) ) {
|
|
|
|
c++;
|
|
|
|
}
|
|
|
|
return( c );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
void AddCluster( std::list<DWinding*> *pointlist, dleaf_t *cl, qboolean* repeatlist, vec3_t clr ){
|
2012-03-17 20:01:54 +00:00
|
|
|
DWinding* w;
|
|
|
|
|
2007-11-04 03:51:54 +00:00
|
|
|
int* leafsurf = &dleafsurfaces[cl->firstLeafSurface];
|
2012-03-17 20:01:54 +00:00
|
|
|
for ( int k = 0; k < cl->numLeafSurfaces; k++, leafsurf++ )
|
2007-11-04 03:51:54 +00:00
|
|
|
{
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( repeatlist[*leafsurf] ) {
|
2007-11-04 03:51:54 +00:00
|
|
|
continue;
|
2012-03-17 20:01:54 +00:00
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
dsurface_t* surf = &drawSurfaces[*leafsurf];
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( surf->surfaceType != MST_PLANAR ) {
|
2007-11-04 03:51:54 +00:00
|
|
|
continue;
|
2012-03-17 20:01:54 +00:00
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
qdrawVert_t* vert = &drawVerts[surf->firstVert];
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( surf->firstVert + surf->numVerts > numDrawVerts ) {
|
|
|
|
DoMessageBox( "Warning", "Warning", MB_OK );
|
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
w = new DWinding();
|
2012-03-17 20:01:54 +00:00
|
|
|
w->AllocWinding( surf->numVerts );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
for ( int l = 0; l < surf->numVerts; l++, vert++ )
|
2007-11-04 03:51:54 +00:00
|
|
|
{
|
2012-03-17 20:01:54 +00:00
|
|
|
( w->p[l] )[0] = vert->xyz[0];
|
|
|
|
( w->p[l] )[1] = vert->xyz[1];
|
|
|
|
( w->p[l] )[2] = vert->xyz[2];
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
w->clr[0] = clr[0];
|
|
|
|
w->clr[1] = clr[1];
|
|
|
|
w->clr[2] = clr[2];
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
2012-03-17 20:01:54 +00:00
|
|
|
pointlist->push_back( w );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
repeatlist[*leafsurf] = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2012-03-17 20:01:54 +00:00
|
|
|
=============
|
|
|
|
CreateTrace
|
|
|
|
=============
|
|
|
|
*/
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
std::list<DWinding*> *CreateTrace( dleaf_t *leaf, int c, vis_header *header, byte *visdata, byte *seen ){
|
2012-03-17 20:01:54 +00:00
|
|
|
byte *vis;
|
|
|
|
int i, j, clusterNum;
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
std::list<DWinding*> *pointlist = new std::list<DWinding*>;
|
2012-03-17 20:01:54 +00:00
|
|
|
qboolean* repeatlist = new qboolean[numDrawSurfaces];
|
|
|
|
dleaf_t *cl;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
vec3_t clrRnd[5] = {
|
2007-11-04 03:51:54 +00:00
|
|
|
{0.f, 0.f, 1.f},
|
|
|
|
{0.f, 1.f, 1.f},
|
|
|
|
{1.f, 0.f, 0.f},
|
|
|
|
{1.f, 0.f, 1.f},
|
|
|
|
{1.f, 1.f, 0.f},
|
|
|
|
};
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
vec3_t clrGreen = {0.f, 1.f, 0.f};
|
|
|
|
|
|
|
|
memset( repeatlist, 0, sizeof( qboolean ) * numDrawSurfaces );
|
|
|
|
|
2007-11-04 03:51:54 +00:00
|
|
|
vis = visdata + ( c * header->leafbytes );
|
|
|
|
|
|
|
|
clusterNum = 0;
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
AddCluster( pointlist, &( dleafs[bsp_leafnumforcluster( c )] ), repeatlist, clrGreen );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
for ( i = 0; i < header->leafbytes; i++ )
|
|
|
|
{
|
|
|
|
for ( j = 0; j < 8; j++ )
|
|
|
|
{
|
2012-03-17 20:01:54 +00:00
|
|
|
cl = &( dleafs[bsp_leafnumforcluster( clusterNum )] );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( ( *( vis + i ) & ( 1 << j ) ) && ( *( seen + i ) & ( 1 << j ) ) && ( leaf->area == cl->area ) ) {
|
|
|
|
AddCluster( pointlist, cl, repeatlist, clrRnd[rand() % 5] );
|
|
|
|
}
|
2007-11-04 03:51:54 +00:00
|
|
|
clusterNum++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-27 15:56:57 +00:00
|
|
|
delete[] repeatlist;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
return pointlist;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2012-03-17 20:01:54 +00:00
|
|
|
=============
|
|
|
|
TraceCluster
|
|
|
|
|
|
|
|
setup for CreateTrace
|
|
|
|
=============
|
|
|
|
*/
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
std::list<DWinding*> *TraceCluster( int leafnum ){
|
2012-03-17 20:01:54 +00:00
|
|
|
byte seen[( MAX_MAP_LEAFS / 8 ) + 1];
|
|
|
|
vis_header *vheader;
|
|
|
|
byte *visdata;
|
|
|
|
dleaf_t *leaf;
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
vheader = (vis_header *) visBytes;
|
2012-03-17 20:01:54 +00:00
|
|
|
visdata = visBytes + sizeof( vis_header );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
memset( seen, 0xFF, sizeof( seen ) );
|
|
|
|
bsp_setbitvectorlength( seen, vheader->portalclusters, sizeof( seen ) );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
leaf = &( dleafs[leafnum] );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
return CreateTrace( leaf, leaf->cluster, vheader, visdata, seen );
|
2007-11-04 03:51:54 +00:00
|
|
|
}
|
|
|
|
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
std::list<DWinding *>* BuildTrace( char* filename, vec3_t v_origin ){
|
2012-03-17 20:01:54 +00:00
|
|
|
if ( !LoadBSPFile( filename ) ) {
|
2007-11-04 03:51:54 +00:00
|
|
|
return NULL;
|
2012-03-17 20:01:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int leafnum = bsp_leafnumfororigin( v_origin );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
Do not do `using namespace std` to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.
It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.
This also makes the code future proof if the STL decides
to define some other types with common name.
This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.
```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/ostream:38,
from /usr/include/c++/11/iostream:39,
from libs/missing.h:76,
from radiant/qe3.h:40,
from radiant/stdafx.h:39,
from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
```
2022-07-14 15:18:51 +00:00
|
|
|
std::list<DWinding*> *pointlist = TraceCluster( leafnum );
|
2007-11-04 03:51:54 +00:00
|
|
|
|
|
|
|
FreeBSPData();
|
|
|
|
|
|
|
|
return pointlist;
|
|
|
|
}
|