Updated generation of lots

This commit is contained in:
2025-03-03 10:00:13 +03:00
parent fc1c4b5168
commit 2afa4feee8
8 changed files with 622 additions and 287 deletions

View 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;
}