![]() |
【转帖】viewport Clipping
viewport clipping
viewport clipping i use dd 1.11 for creating our own rendering application with own vectorizedevice and vectorizeview. for viewport clip i use following code that i find in exgsgdivectorizedevice.cpp code: bool bclipped = false; if(m_nrcpoints.size()) { bclipped = true; device()->pushviewportclip(m_nrcpoints.getptr(), m_nrccounts.getptr(), m_nrccounts.size()); } else if(device()->numviews()>1) { bclipped = true; odgsdcpoint dcpoint1, dcpoint2; screenrect(dcpoint1, dcpoint2); device()->pushviewportclip(dcpoint1, dcpoint2); } odgsbasevectorizeview::update(); if(bclipped) { device()->popviewportclip(); } but autocad don't use clipping only if object is on frozen layer, if layer is switched of just clipping border doesn't display. dwgdirect doesn't use clipping if object is on frozen or switched off layer (see attached files). can i obtain same clipping boundary as autocad used? what the purpose of member variable m_nrcpoints? attached images this is dd bug to be fixed. sergey slezkin do you plan include this fix in 1.11 update? best regards, ivan obraztsov and what about 1.14.02 ? it seem still to not work, but maybe i'm doing sth wrong in my code? quote: originally posted by michał krzesiak and what about 1.14.02 ? it seem still to not work, but maybe i'm doing sth wrong in my code? in 1.14.1 it work correctly. best regards, ivan obraztsov this was fixed in 1.11.1 and seems to work in 1.14.02 (in odamfcapp) sergey slezkin |
所有的时间均为北京时间。 现在的时间是 01:14 PM. |