C++
virtual ACDBCORE2D_PORT Adesk::UInt8* visibility() const;
Description
Returns a pointer to an array of visibility flags (that is, 0 == invisible, 1 == visible), one for each face in the mesh or shell the AcGiFaceData object is used with. If the visibility flag's data array has not been set, then NULL is returned.
The pointer returned by this function points to the actual array in use by the graphics system, not a copy. Do not free or delete this array unless the array's memory was dynamically allocated and the worldDraw() or viewportDraw() function it's being used within is about to return.
There are three types of visibility:
| kAcGiInvisible | The geometry is invisible. |
| kAcGiVisible | The geometry is visible. |
| kAcGiSilhouette | The edge is a silhouette edge. |
A silhouette is an edge that is invisible if it is common to two faces and both faces are either facing toward or away from the viewport; otherwise, it's the same as kAcGiVisible. Silhouette visibility is currently only acknowledged during a HIDE command.