几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】gradient in hatches (http://www.dimcax.com/hust/showthread.php?t=16438)

yang686526 2009-05-05 11:39 AM

【转帖】gradient in hatches
 
gradient in hatches
gradient in hatches
we're trying to map the gradient applied in the hatches in our app. the api's exposed in oddbhatch related to gradient seems to be missing some vital information, such as: is the gradient linear or radial?
we examined the evaluategradientcolorat() method, but its not obvious to us as to how to map a 2d space to a single value, which is to be provided as input to this?
oda guys, how do you do it?
thanks
gradientname() returns string indentifying one of 9 predefined gradients:
linear
cylindrical
inverted cylindrical
spherical
hemispherical
curved
inverted spherical
inverted hemispherical
inverted curved
sergey slezkin
then how does one handle any user-defined gradient hatches?
as i know autocad up to 2006 do not support user-defined gradients. maybe they will be supported in 2007.
and corresponding interface methods were introduced into arx beforehand. from arx they migrated to dd.
sergey slezkin
thanks sergey.
also wanted to enquire, if there is some standard place from where we can get the parameters for mapping these predefined gradients (for ex. radius length, position of radius and how it all changes with angle and centered peoperty etc).


所有的时间均为北京时间。 现在的时间是 01:55 AM.