1701 {
1702 std::ofstream ofl;
1703 if(tabCounter == 0) {
1704 ofl.open(fileName);
1705 ofl.close();
1706 }
1707
1709
1710 ofl.open(fileName, std::ofstream::app);
1711
1712 if(ofl) {
1713 for(
MInt count = 0; count < tabCounter; count++)
1714 ofl << " ";
1715 ofl << "node plane normal, w:";
1716 for(
MInt dim = 0; dim <
nDim; ++dim)
1718 ofl << ", " << this->plane.w << std::endl;
1719
1720 for(
MInt p = 0; (
unsigned)p < this->
polygons.size(); p++) {
1721 for(
MInt count = 0; count < tabCounter; count++)
1722 ofl << " ";
1723 ofl <<
"polygon " <<
p <<
" plane normal, w:";
1724 for(
MInt dim = 0; dim <
nDim; ++dim)
1726 ofl << ", " << this->polygons[p].plane.w << std::endl;
1727
1728 for(
MInt count = 0; count < tabCounter; count++)
1729 ofl << " ";
1730 ofl <<
"polygon setIndex: " << this->
polygons[p].setIndex <<
", bodyId: " << this->
polygons[p].bodyId
1731 <<
", faceId: " << this->
polygons[p].faceId <<
", faceType: " << this->
polygons[p].faceType << std::endl;
1732 }
1733 ofl << std::endl << std::endl;
1734 ofl.close();
1735 }
1736
1737 if(this->
back) this->
back->
plot(tabCounter + 1, fileName);
1738 }
void plot(MInt tabCounter, const MChar *fileName)
constexpr std::underlying_type< FcCell >::type p(const FcCell property)
Converts property name to underlying integer value.