mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Make some debug prints verbose-only, remove others
This commit is contained in:
@@ -622,15 +622,12 @@ void Expression::exec_func(BuiltinFunc p_func, const Variant **p_inputs, Variant
|
||||
case TEXT_PRINTERR: {
|
||||
|
||||
String str = *p_inputs[0];
|
||||
|
||||
//str+="\n";
|
||||
print_error(str);
|
||||
|
||||
} break;
|
||||
case TEXT_PRINTRAW: {
|
||||
String str = *p_inputs[0];
|
||||
|
||||
//str+="\n";
|
||||
String str = *p_inputs[0];
|
||||
OS::get_singleton()->print("%s", str.utf8().get_data());
|
||||
|
||||
} break;
|
||||
|
||||
@@ -626,7 +626,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
voxelsize.z /= div_z;
|
||||
|
||||
// create and initialize cells to zero
|
||||
//print_line("Wrapper: Initializing Cells");
|
||||
|
||||
uint8_t ***cell_status = memnew_arr(uint8_t **, div_x);
|
||||
for (int i = 0; i < div_x; i++) {
|
||||
@@ -645,7 +644,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
}
|
||||
|
||||
// plot faces into cells
|
||||
//print_line("Wrapper (1/6): Plotting Faces");
|
||||
|
||||
for (int i = 0; i < face_count; i++) {
|
||||
|
||||
@@ -659,8 +657,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
|
||||
// determine which cells connect to the outside by traversing the outside and recursively flood-fill marking
|
||||
|
||||
//print_line("Wrapper (2/6): Flood Filling");
|
||||
|
||||
for (int i = 0; i < div_x; i++) {
|
||||
|
||||
for (int j = 0; j < div_y; j++) {
|
||||
@@ -690,8 +686,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
|
||||
// build faces for the inside-outside cell divisors
|
||||
|
||||
//print_line("Wrapper (3/6): Building Faces");
|
||||
|
||||
PoolVector<Face3> wrapped_faces;
|
||||
|
||||
for (int i = 0; i < div_x; i++) {
|
||||
@@ -705,8 +699,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
}
|
||||
}
|
||||
|
||||
//print_line("Wrapper (4/6): Transforming Back Vertices");
|
||||
|
||||
// transform face vertices to global coords
|
||||
|
||||
int wrapped_faces_count = wrapped_faces.size();
|
||||
@@ -724,7 +716,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
}
|
||||
|
||||
// clean up grid
|
||||
//print_line("Wrapper (5/6): Grid Cleanup");
|
||||
|
||||
for (int i = 0; i < div_x; i++) {
|
||||
|
||||
@@ -740,7 +731,6 @@ PoolVector<Face3> Geometry::wrap_geometry(PoolVector<Face3> p_array, real_t *p_e
|
||||
if (p_error)
|
||||
*p_error = voxelsize.length();
|
||||
|
||||
//print_line("Wrapper (6/6): Finished.");
|
||||
return wrapped_faces;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me
|
||||
Vector3 sp = p_points[i].snapped(Vector3(0.0001, 0.0001, 0.0001));
|
||||
if (valid_cache.has(sp)) {
|
||||
valid_points.write[i] = false;
|
||||
//print_line("INVALIDATED: "+itos(i));
|
||||
} else {
|
||||
valid_points.write[i] = true;
|
||||
valid_cache.insert(sp);
|
||||
@@ -455,7 +454,6 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me
|
||||
//fill mesh
|
||||
r_mesh.faces.clear();
|
||||
r_mesh.faces.resize(ret_faces.size());
|
||||
//print_line("FACECOUNT: "+itos(r_mesh.faces.size()));
|
||||
|
||||
int idx = 0;
|
||||
for (List<Geometry::MeshData::Face>::Element *E = ret_faces.front(); E; E = E->next()) {
|
||||
@@ -473,12 +471,5 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me
|
||||
|
||||
r_mesh.vertices = p_points;
|
||||
|
||||
//r_mesh.optimize_vertices();
|
||||
/*
|
||||
print_line("FACES: "+itos(r_mesh.faces.size()));
|
||||
print_line("EDGES: "+itos(r_mesh.edges.size()));
|
||||
print_line("VERTICES: "+itos(r_mesh.vertices.size()));
|
||||
*/
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user