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

yang686526 2009-05-06 08:38 PM

【转帖】odgenurbsurface glunurbssurface
 
odgenurbsurface glunurbssurface
odgenurbsurface glunurbssurface
dders,
i have been tyring to get a 3d solid comprised of surfaces view the breps to display correctly in opengl using the glunurbsrenderer.
i have gotton pretty far,in the sense it looks like the shape but square ????
ie: if it is displayed as a circle in autocad, i get a square instead.
ok, what i am doing is as follows, in the
glunurbssurface(g_pnrbs, numknotsinu(), getuknots(),
numknotsinv(), getvknots,
numcontrolpointsinu() * 3, 3,
pctrlpnts,
numcontrolpointsinu(), numcontrolpointsinv(), gl_map2_vertex_3);
does the above seem reasonable that it should work, or am i doing something obviously very stupid ?
cheers
jason

jason, there's nothing obviously very stupid.
a thing that may be key to success - control points in some nurbs representations are stored multiplied by corresponding knots, in some - not multiplied.
maybe using gl_map2_vertex_4 and passing control points multiplied by weight (with weight as 4th coordinate) will help.
sincerely yours,
george udov


所有的时间均为北京时间。 现在的时间是 07:23 PM.