查看单个帖子
旧 2009-04-12, 06:46 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】iswcolourcontour

iswcolourcontour
hi
i am looking at the documentation for the iswcolorcontour interface. does anyone know whether you can apply color values at arbitrary points on a surface or does it have to be a vertex on the surface that is 'pickable' within sw. i have been told that is the case but i am still not quite convinced.
the documentation says that the iswcolorcontour.value method 'sets the color and value at the specified position on the model.'
the way it is worded it sounds like you could pick an arbitrary point on a surface and apply a color at that point. however the function requires an argument called vertex coords:
overridable function value( _
byval face as object, _
byref vertexcoords as single, _
byref normalcoords as single, _
byref value as double _
) as integer
which sounds like it needs to be a vertex of the surface.
i would appreciate hearing from anyone with experience with this interface.
regards
tom mulder
regards
tom mulder.
compac nw8440
intel core 2 t7400 2.16ghz
ati mobility firegl v5200
solidworks 2008 sp4.0
windows xp professional sp2
a vertex is just a 3d position, so it is the same thing. any location of a surface that matches a position. i presume it will automatically pick the closest point on the surface if the specified one does not hit.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)