From 3f3230ed2a235a6a683cebe158b534a78d7ca45d Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 10 Dec 2018 17:51:41 +0300 Subject: [PATCH] remove debug prints --- radiant/brush.cpp | 8 +------- radiant/brush.h | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/radiant/brush.cpp b/radiant/brush.cpp index 07591ae7..5474f9e0 100644 --- a/radiant/brush.cpp +++ b/radiant/brush.cpp @@ -106,7 +106,6 @@ inline bool Brush_isBounded( const Brush& brush ){ } void Brush::buildBRep(){ - globalOutputStream() << " buildBRep() \n"; const bool _vertexModeOn = m_vertexModeOn; bool degenerate = buildWindings(); @@ -122,7 +121,6 @@ void Brush::buildBRep(){ } if ( degenerate || faces_size < 4 || faceVerticesCount != ( faceVerticesCount >> 1 ) << 1 ) { // sum of vertices for each face of a valid polyhedron is always even - globalOutputStream() << degenerate << " degenerate\n"; m_uniqueVertexPoints.resize( 0 ); vertex_clear(); @@ -309,8 +307,7 @@ void Brush::buildBRep(){ m_faceCentroidPoints[i] = pointvertex_for_windingpoint( m_faces[i]->centroid(), colour_vertex ); } } -globalOutputStream() << _vertexModeOn << " _vertexModeOn\n"; -globalOutputStream() << m_vertexModeOn << " m_vertexModeOn\n"; + // :faceleg: start move end // m_vertexModeOn 1 1 0 // _vertexModeOn 0 1 1 @@ -466,8 +463,6 @@ const Face* vertex_mode_find_common_face( const Brush::VertexModeVertex& v1, con #include "quickhull/QuickHull.hpp" void Brush::vertexModeTransform( const Matrix4& matrix ){ - globalOutputStream() << " vertexModeTransform\n"; - quickhull::QuickHull quickhull; std::vector> pointCloud; pointCloud.reserve( m_vertexModeVertices.size() ); @@ -537,6 +532,5 @@ void Brush::vertexModeTransform( const Matrix4& matrix ){ addFace( face ); } } - globalOutputStream() << m_faces.size() << " m_faces.size()\n"; } } diff --git a/radiant/brush.h b/radiant/brush.h index ad1d47d6..3df0881e 100644 --- a/radiant/brush.h +++ b/radiant/brush.h @@ -1802,7 +1802,6 @@ void transformChanged(){ //m_transformChanged = true; planeChanged(); m_transformChanged = true; //experimental fix of cyclic dependency - globalOutputStream() << m_planeChanged << " m_planeChanged\n"; } typedef MemberCaller TransformChangedCaller; @@ -1861,14 +1860,12 @@ void snapto( float snap ){ } } void revertTransform(){ - globalOutputStream() << " revertTransform\n"; for ( Faces::iterator i = m_faces.begin(); i != m_faces.end(); ++i ) { ( *i )->revertTransform(); } } void freezeTransform(){ - globalOutputStream() << " freezeTransform\n"; for ( Faces::iterator i = m_faces.begin(); i != m_faces.end(); ++i ) { ( *i )->freezeTransform(); @@ -1892,14 +1889,12 @@ VertexModeVertices m_vertexModeVertices; bool m_vertexModeOn{false}; void vertexModeInit(){ - globalOutputStream() << " vertexModeInit(){\n"; m_vertexModeOn = true; m_vertexModeVertices.clear(); undoSave(); } void vertexModeFree(){ - globalOutputStream() << " vertexModeFree(){\n"; m_vertexModeOn = false; // m_vertexModeVertices.clear(); //keep, as it is required by buildBRep() after this call } @@ -3779,7 +3774,6 @@ void snapComponents( float snap ){ } } void evaluateTransform(){ - globalOutputStream() << " evaluateTransform\n"; if( m_transform.m_transformFrozen ) m_brush.vertexModeFree(); if( m_transform.m_transformFrozen && !m_transform.isIdentity() ){ /* new transform */