Message 1 of 8

Not applicable
03-13-2015
01:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi ,guys.Why are there so many problems in 3ds max SDK? Hope someone be able to deliver me from the trouble.
PolyObject* ply = dynamic_cast<PolyObject *>(obj); MNMesh& pMesh = ply->GetMesh(); MNEdge eg = pMesh.e[stEg]; int egf1 = eg.f1; int egf2 = eg.f2; int fcsCnt = fcs->GetSize(); egs.SetSize(pMesh.nume); egsBd.SetSize(pMesh.nume); egs.ClearAll(); egsBd.ClearAll(); MSTR info = _T(""); info.printf(_T("NumEgs=%d\n"), pMesh.nume); MSTR x; int j = 0; for (int i = 0; i <egs.GetSize(); i++){ if (egs[i]) { x.printf(_T("%d,"), i); info += x; j += 1; if (j % 10 == 0){ info += _T("\n"); } } }
this is a snippet of codes of a gup plugin ,
I declared a bitarray and set all bits to 0 with clearAll(),but after printed the value of the bitarray ,some bits is still 1,why?
how to fix this problem?
thanks
Solved! Go to Solution.