几何尺寸与公差论坛

 找回密码
 注册
查看: 2670|回复: 1

How to get color of face object?

[复制链接]
发表于 2006-12-4 09:25:02 | 显示全部楼层 |阅读模式
You can use Face2.GetMaterialPropertyValues2 to get the color properties that SW is sending to OpenGL.  If this array comes back with -1 values in the array, then look to the ModelDocExtension.GetMaterialPropertyValues for the default values of the document.





Regards,

-Earl
 楼主| 发表于 2006-12-4 15:45:56 | 显示全部楼层

回复: How to get color of face object?

VARIANT vFeatureDispProp;
VariantInit(&vFeatureDispProp);
vFeatureDispProp = swFeature.GetMaterialPropertyValues();

PS:SW API OLE & VC 6.0
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 19:16 , Processed in 0.034261 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表