Hello friends,
What is the function used to change the surface color using toolkit?
Solved! Go to Solution.
ProSurface.h
Thank you!
Some problem:
Any change in RGB value results in Black Output.
After getting current appearence_properties using
ProSurfaceSideAppearancepropsGet(&p_model_item, 0, &appearance_properties);
I modify it
appearance_properties.color_rgb[0] = 1.0;
appearance_properties.color_rgb[1] = 1.0;
appearance_properties.color_rgb[2] = 0.0;
in order to get yellow, but still get black.
How to set RGB value properly?
check the validity of '&p_model_item' - looks like an error...
try this:
void test_yellow ( ProGeomitem *p_gi)
{
ProSurfaceAppearanceProps prop;
ProError err = ProSurfaceSideAppearancepropsGet( p_gi, 0, &prop);
prop.color_rgb[0] = 1.0;
prop.color_rgb[1] = 1.0;
prop.color_rgb[2] = 0.0;
err = ProSurfaceSideAppearancepropsSet( p_gi, 0, &prop );
}