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

yang686526 2009-05-07 05:18 PM

【转帖】rouble Import Shell Using Vectoryzee
 
trouble import shell using vectoryzeex
trouble import shell using vectoryzeex
hi,
im here again
well, im still working in dxfs importation to proprietary format and have a new problem.
im using vectoryzeex for this and include my intercept code in polylineout and polygonout like describe in the next
code:
void odgiconveyorgeometrydumper::polylineout(odint32 nbpoints, const odgepoint3d* pvertexlist)
{
odstring s;
s.format("polylineout, %d points:", nbpoints);
m_pdumper->output(s);
m_pdumper->output(nbpoints, pvertexlist);
convertpolygonpoints(nbpoints, pvertexlist, 0);
}
void odgiconveyorgeometrydumper::polygonout(odint32 nbpoints,
const odgepoint3d* pvertexlist,
const odgevector3d* pnormal)
{
odstring s;
s.format("polygonout, normal: %s, %d points:",
formatvector(pnormal).c_str(), nbpoints);
m_pdumper->output(s);
m_pdumper->output(nbpoints, pvertexlist);
m_pdumper->output("end polygonout\n");
convertpolygonpoints(nbpoints, pvertexlist, 1);
}
the function convertpolygonpoints convert the points to my format and draw this. the last param (0 or 1) is a flag to conect first coordenate with the last (make this if 1).
i dont call this routine when i convertin circles (because i have another routine for this) but it used to convert all other faces.
its work but i found one error when converting shell elements. i dont have "fill" metods in my primitives (and dont need) but i need draw borders...
im anexing the dxf with a logo ("2logo.dxf"), txt file with all coordenater generating by import("linhas.txt"), printscreen with logo in autocad ("logoorig.jog"), printscreen with import result ("imgimport.jpg") showed in program to interpret file "linhas.txt".
im including too the file generate from vectoryzeex ("teste.log").
please, i need now how coordinate format odgigeometrysimplifier::shellproc send to polygonout or polylineout. or what my mistake...
i make a program to read lines.txt. its in
help me
hi people,
please, help me ! ! !
tkx,
[]s,
celso
heeeeeeelp ! ! ! ! !
heeeeeeelp ! ! ! ! !
[]s,
celso


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