DWF

Reply
Contributor
geotavros
Posts: 15
Registered: ‎03-27-2012
Message 1 of 1 (173 Views)

How does TK_Visibility work?

173 Views, 0 Replies
05-08-2013 08:24 AM

I have a DWF file. When I open it in Design Review I see a 3D model. When I open it in my application I see a 3D model and lots of lines, circles and arcs. 

 

I assume that TK_Visibility is the entity that is responsible for setting which types of geometry shouldn't be drawn. When I read TK_Visibility I get these integers: mask = 1, value = 254. 

int mask = this->GetGeometry();

int val = this->GetValue();

 

This doesn't make much sence. According to the docs it means that we shouldn't draw faces. 

Doc:

mask bitmask of affected geometry. bit definitions are here
value bitmask indicating which geometry types are visible.

 

Notes

This is the visibility which will apply to geometry in the currently opened segment. A bit in the value indicates that the segment has a setting for the corresponding geometry type. The matching bit in the value then indicates whether that geometry type is visible (if set) or invisible.

 

 

Is this a bug in the toolkit or in documentation? Or may be I didn't understand it correctly? 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community