Color

Technical discussions
Post Reply
CG_
Posts: 6
Joined: Fri Mar 03, 2017 12:25 am

Color

Post by CG_ »

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

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Color

Post by nickz »

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

Post Reply