Hello
I have another question related to http://www.dynoinsight.com/phpBB3/viewt ... f=2&t=3023
I want to be able to add color to my display. How do I do this ? I've checked the IDraw functions, but could not find how to implement it in here.
Thank you
Color
Re: Color
Hi CG
Color is defined per section via IMaterial. Most often you need to set the first two SetColor(0,..) and SetColor(1,..) to the same value and leave the rest as default
More info: "KernelCAD Models">Sections>Attributes>Material in the installed help
There are also textures and shading for non-flat per section or per patch color. This is a bit of an advanced topic
Color of lines and point sets is set via their own interfaces
Idraw is for different things. It is supposed to be used inside ClientDraw event handler for drawing transient, kind of per frame staff
Color is defined per section via IMaterial. Most often you need to set the first two SetColor(0,..) and SetColor(1,..) to the same value and leave the rest as default
More info: "KernelCAD Models">Sections>Attributes>Material in the installed help
There are also textures and shading for non-flat per section or per patch color. This is a bit of an advanced topic
Color of lines and point sets is set via their own interfaces
Idraw is for different things. It is supposed to be used inside ClientDraw event handler for drawing transient, kind of per frame staff