private color of each part of compound

before i compound some segment lines,each of them have private different color.after i compounded them , they have the same color when displaying.
how can each of them hold their original private color?

Thanks Advance!

Patrik Mueller's picture

You need a kind of AIS_Shape or AIS_Interactive object who supports several colors!
Take a look at "XCAFPrs_AISObject" as an example....

HTH,

Patrik

Vince's picture

thank Patrik!
let me try.