高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】hatch vectorization - viewport - paperspace
hatch vectorization - viewport - paperspace
hatch vectorization - viewport - paperspace
hi.
i have problem with getting hatch coordinate in layout( paperspace or viewport)
i use code like that.
in method
code:
shellfaceout( odint32 facelistsize, const odint32* pfacelist, const odgevector3d* pnormal )
{
oddbobjectid hatchid = getobjectid();
oddbobjectptr pobject = hatchid.safeopenobject( oddb::kforread );
if( ((oddbhatchptr)pobject)->issolidfill() )
{
//iterate to outline ,and get coordinate
//transform ocs to wcs
//how to get current viewport for current drawable ?
//can i determinate that current drawable is on viewport ?
}
}summary ,how can i get viewport coordinate for current drawable ?,or how can i get which viewport is associative to current drawable ,when i layout vectorize?
if anyone know ,please reply for my message.thanks
last edited by bigos; 14th december 2007 at 01:39 amfff">.
there is giviewport() member of odgibasevectorizer. is that enough?
what are you trying to do anyway?
vladimir
|