几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】odgiworldgeometrydumperpushmodeltransform (http://www.dimcax.com/hust/showthread.php?t=17716)

yang686526 2009-05-06 08:52 PM

【转帖】odgiworldgeometrydumperpushmodeltransform
 
odgiworldgeometrydumper::pushmodeltransform
odgiworldgeometrydumper::pushmodeltransform
there are two verisions of this method, one which takes in a odgematrix3d and one that takes in a odgevector3d. i have the one which take a matrix figured out, but don't know what i am expected to do with the one taking in a vector. i have not used. i figure i will need to make a matrix from the vector to push onto my stack, but am not that familuar with matrices, and therefore, do not know what to do.
any help would be appreciated.
steve

the method, taking a vector, pushes a matrix, performing transform from ocs to wcs (using arbitrary axis algorithm). if vector is n, this matrix can be obtained using odgematrix3d::planetoworld(n).
for example if you have custom entity drawing as circle, with center a, normal n, radius r, and center is specified in ocs of this circle, worlddraw can take form:
code:
odcustomcircle::worlddraw(odgiworlddraw* pwd)
{
assertreadenabled();
pwd->geometry().pushmodeltransform(n);
pwd->geometry().circle(a, r, odgevector3d::kzaxis);
pwd->geometry().popmodeltransform();
}
sincerely yours,
george udov


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