查看单个帖子
旧 2009-05-07, 05:18 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:olylineout(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:olygonout(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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)