Hi all,
I’m seeing something unexpected when deriving a class from Rhino.Input.Custom.GetPoint to override the OnDynamicDraw() method.
If the shadows are on, the solids show black sides.
but all is fine without shadows
Here is the sample script that draws the cylinder
import Rhino
import System
def main():
gep = GetPushPullPoint()
gep.AcceptNothing( True )
gep.SetCommandPrompt( '... Testing ...' )
gep.Get()
class GetPushPullPoint( Rhino.Input.Custom.GetPoint ):
def OnDynamicDraw( self, eventargs ):
brep = Rhino.Geometry.Brep.CreateFromCylinder(
Rhino.Geometry.Cylinder( Rhino.Geometry.Circle( 100 ), 100 ),
True, True )
color = System.Drawing.Color.Cyan
eventargs.Display.DrawBrepShaded(
brep, Rhino.Display.DisplayMaterial( color ) )
main()
Is there a way to avoid that ?
Am I missing something ?
Thanks