[TD]Add dumpCS function to DrawUtil

This commit is contained in:
wandererfan
2019-09-23 14:38:24 -04:00
committed by WandererFan
parent 3ccba4c64b
commit 58cf8587e2
2 changed files with 15 additions and 0 deletions

View File

@@ -1060,4 +1060,17 @@ QString DrawUtil::qbaToDebug(const QByteArray & line)
return s;
}
void DrawUtil::dumpCS(const char* text,
gp_Ax2 CS)
{
gp_Dir baseAxis = CS.Direction();
gp_Dir baseX = CS.XDirection();
gp_Dir baseY = CS.YDirection();
Base::Console().Message("DU::dumpCSDVS - %s Axis: %s X: %s Y: %s\n", text,
DrawUtil::formatVector(baseAxis).c_str(),
DrawUtil::formatVector(baseX).c_str(),
DrawUtil::formatVector(baseY).c_str());
}
//==================================

View File

@@ -158,6 +158,8 @@ class TechDrawExport DrawUtil {
static void countEdges(const char* label, const TopoDS_Shape& s);
static const char* printBool(bool b);
static QString qbaToDebug(const QByteArray& line);
static void dumpCS(const char* text, gp_Ax2 CS);
};
} //end namespace TechDraw