jianbaoxia
CAD master
Hi Bros, I'm JianBaoXia.
Today I write a demo of create a helix edge, I do it both in Draw and BRepBuilderAPI_MakeEdge.
However, the helix create in helix is smooth, and another helix create by my code is not, look likes below:
I'm looking the code of tcl, I must ignore something.
However, I really want to know why the helix create by BRepBuilderAPI_MakeEdge looks not smooth.
There is my demo:
The tcl code for Draw:
Today I write a demo of create a helix edge, I do it both in Draw and BRepBuilderAPI_MakeEdge.
However, the helix create in helix is smooth, and another helix create by my code is not, look likes below:
I'm looking the code of tcl, I must ignore something.
However, I really want to know why the helix create by BRepBuilderAPI_MakeEdge looks not smooth.
There is my demo:
Code:
Handle(Geom_CylindricalSurface) aCylSur = new Geom_CylindricalSurface(gp_Ax3(gp::XOY()), 6.0);
gp_Lin2d aLine2d(gp_Pnt2d(0.0, 0.0), gp_Dir2d(1.0, 1.0));
Handle(Geom2d_TrimmedCurve) aSegment = GCE2d_MakeSegment(aLine2d, 0.0, M_PI);
TopoDS_Edge aHelixEdge = BRepBuilderAPI_MakeEdge(aSegment, aCylSur, 0.0, 6.0 * M_PI).Edge();
The tcl code for Draw:
Code:
pload MODELING VISUALIZATION
cylinder aCylinder 6
line aLine2d 0 0 1 1
trim aSegment aLine2d 0 2*pi
mkedge aHelixEdge aSegment aCylinder 0 6*pi
vdisplay aHelixEdge