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

yang686526 2009-05-05 10:44 AM

【转帖】extrusion
 
extrusion
extrusion
hello,
how can i know if an entity for example a polyline have or not have extrusion?
and then,
how can i obtain its wcs coordinates?
my code is this:
...
oddbpolylineptr polyline;
odgepoint3d point;
...
odgevector3d normal = polyline->normal();
...
for(int i=0; i<polyline->numverts(); i++)
{
polyline->getpointat(i, point);
point.transformby(odgematrix3d::planetoworld(norma l));
}
...
but the coordinates are wrong.
thanks.
if oddbpolyline::thickness() returns non-zero than the polyline is extruded.
where are 2 getpointat() functions returning 2d or 3d points.
2d point returned is in ocs.
3d point is in wcs
sergey slezkin


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