Updated generation of lots
This commit is contained in:
30
src/modules/stream/contours.cpp
Normal file
30
src/modules/stream/contours.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include <core/object.h>
|
||||
#include "contours.h"
|
||||
|
||||
Contours *Contours::singleton = nullptr;
|
||||
|
||||
Contours *Contours::get_singleton()
|
||||
{
|
||||
if (!singleton)
|
||||
singleton = memnew(Contours);
|
||||
return singleton;
|
||||
}
|
||||
|
||||
Contours::Contours()
|
||||
{
|
||||
}
|
||||
|
||||
Contours::~Contours()
|
||||
{
|
||||
}
|
||||
|
||||
bool Contours::is_in_closed_contour(const struct wedge *w)
|
||||
{
|
||||
int i, j;
|
||||
bool found = false;
|
||||
for (i = 0; i < (int)wedge_contours.size(); i++)
|
||||
for (j = 0; j < (int)wedge_contours[i].size(); j++)
|
||||
if (wedge_contours[i][j] == w)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user