Style: Fix whole-line commented code
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
This commit is contained in:
parent
78e90ac60b
commit
93ab45b6b5
306 changed files with 1889 additions and 1535 deletions
|
|
@ -390,8 +390,10 @@ static int _bsp_create_node(const Face3 *p_faces,const Vector<int>& p_indices,Ve
|
|||
|
||||
const Face3& f=p_faces[ indices[i] ];
|
||||
|
||||
//if (f.get_plane().is_almost_like(divisor_plane))
|
||||
// continue;
|
||||
/*
|
||||
if (f.get_plane().is_almost_like(divisor_plane))
|
||||
continue;
|
||||
*/
|
||||
|
||||
int over_count=0;
|
||||
int under_count=0;
|
||||
|
|
@ -546,7 +548,7 @@ BSP_Tree::BSP_Tree(const Variant& p_variant) {
|
|||
error_radius = d["error"];
|
||||
aabb = d["aabb"];
|
||||
|
||||
// int node_count = src_nodes.size();
|
||||
//int node_count = src_nodes.size();
|
||||
nodes.resize(src_nodes.size()/3);
|
||||
|
||||
PoolVector<int>::Read r = src_nodes.read();
|
||||
|
|
|
|||
|
|
@ -750,9 +750,7 @@ public:
|
|||
return Vector<Vector3>(); //empty
|
||||
}
|
||||
|
||||
// long count = 0;
|
||||
long previous = polygon.size() - 1;
|
||||
|
||||
Vector<Vector3> clipped;
|
||||
|
||||
for (int index = 0; index < polygon.size(); index++) {
|
||||
|
|
|
|||
|
|
@ -130,8 +130,10 @@ private:
|
|||
|
||||
~Octant() {
|
||||
|
||||
//for (int i=0;i<8;i++)
|
||||
// memdelete_notnull(children[i]);
|
||||
/*
|
||||
for (int i=0;i<8;i++)
|
||||
memdelete_notnull(children[i]);
|
||||
*/
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -250,8 +252,10 @@ private:
|
|||
E->get().eA=p_A->pair_list.push_back(&E->get());
|
||||
E->get().eB=p_B->pair_list.push_back(&E->get());
|
||||
|
||||
// if (pair_callback)
|
||||
// pair_callback(pair_callback_userdata,p_A->userdata,p_B->userdata);
|
||||
/*
|
||||
if (pair_callback)
|
||||
pair_callback(pair_callback_userdata,p_A->userdata,p_B->userdata);
|
||||
*/
|
||||
} else {
|
||||
|
||||
E->get().refcount++;
|
||||
|
|
@ -970,8 +974,10 @@ void Octree<T,use_pairs,AL>::move(OctreeElementID p_id, const Rect3& p_aabb) {
|
|||
Octant *o=E->get().octant;
|
||||
typename List<typename Element::OctantOwner,AL>::Element *N=E->next();
|
||||
|
||||
// if (!use_pairs)
|
||||
// o->elements.erase( E->get().E );
|
||||
/*
|
||||
if (!use_pairs)
|
||||
o->elements.erase( E->get().E );
|
||||
*/
|
||||
|
||||
if (use_pairs && e.pairable)
|
||||
o->pairable_elements.erase( E->get().E );
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ 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()));
|
||||
//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()) {
|
||||
|
|
|
|||
|
|
@ -320,7 +320,7 @@ bool TriangleMesh::intersect_segment(const Vector3& p_begin,const Vector3& p_end
|
|||
|
||||
|
||||
bool valid = b.aabb.intersects_segment(p_begin,p_end);
|
||||
// bool valid = b.aabb.intersects(ray_aabb);
|
||||
//bool valid = b.aabb.intersects(ray_aabb);
|
||||
|
||||
if (!valid) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1128,7 +1128,7 @@ int TriangulatorPartition::MonotonePartition(List<TriangulatorPoly> *inpolys, Li
|
|||
//this makes deleting existing edges much faster
|
||||
Set<ScanLineEdge>::Element **edgeTreeIterators,*edgeIter;
|
||||
edgeTreeIterators = new Set<ScanLineEdge>::Element*[maxnumvertices];
|
||||
// Pair<Set<ScanLineEdge>::Element*,bool> edgeTreeRet;
|
||||
//Pair<Set<ScanLineEdge>::Element*,bool> edgeTreeRet;
|
||||
for(i = 0; i<numvertices; i++) edgeTreeIterators[i] = NULL;
|
||||
|
||||
//for each vertex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue