[TD]Add dumpCS function to DrawUtil
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
//==================================
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user