Prod.: Engine, ver.: 6020, ID: 60001338, Wish : Draw always black wireframe in ShadeON mode

Wish : Draw always black wireframe in ShadeON mode

Article60001338
TypeWish
ProductEngine
Version6020
Date Added3/1/2011
FixedYes [6/10/2011]
Submitted byJungtae Ji
Keywords

Subject

Draw always black wireframe in ShadeON mode

Summary

Is it posible the wire-frame to be always black (ignoring facelist or vdPolyface's color) in ShadeOn mode ?

Solution

In version 6021 a new property EdgeColor was added in vdLayout , vdViewPort and vdDocument objects .This property applies to Hide, Wire3D and ShadeON modes only where edges of polyfaces are visible.

Get/Set the display color for edges of all faces when rendering in 3d.(when RenderMode is Wire3d ,Hide or ShadeOn)
Default value is Color.Empty and the color of edges have the color of their entity. When Get / Set this property from a vdDocument object then Get/Set the display color for edges of  the ActiveLayOut or ActiveViewPort of ActiveLayOut  (if exist)

Using also the property EdgePenWidth in GlobalRenderProperties, you can choose how thick are lines in the ShadeOn and Wire3D and Hide modes. See some images from the same drawing with the above properties changed :


The original file in ShadeOn with default EdgeColor (Color.Empty) and EdgePenWidth (0.0016 of an inch, about 2 pixels in screen)
 


The original file in ShadeOn with a greenish EdgeColor (Color.OliveDrab)
 


The original file in ShadeOn with a reddish EdgeColor (Color.Tomato) and EdgePenWidth (0.001 of an inch, about 1 pixels in screen)
 


The original file in ShadeOn with the same EdgeColor (Color.Tomato) and EdgePenWidth (0.03 of an inch, about 3 pixels in screen)
 


The original file in Hide with a reddish EdgeColor (Color.Tomato) and EdgePenWidth (0.0001 of an inch, about 1 pixels in screen)
 


The original file in Wire3D with reddish EdgeColor (Color.Tomato) and EdgePenWidth (0.0001 of an inch, about 1 pixels in screen)