![dengwei's picture dengwei's picture](/sites/default/files/images/userpic_default.png)
Fri, 03/01/2002 - 16:03
Forums:
HI,
Bug in 12_SampleHLR
I can use HLRBRep_PolyAlgo, But when I use the HLRBRep_Algo, some edges are not correct.It seems that the prjections of some lines are not right.
I can send you of screencopy by email.
Could someone tell me why and how to deal with it?
Thanks
David
Sat, 03/02/2002 - 00:44
Hi,
I think it is a bug.
You can register it under the bug section.
I can provide you a workaround :
explode your shapes in faces ( for performance reasons ) : ( using TopExp_Explorer )
begin loop on your faces
convert the face to bspline ( using BRepBuilderAPI_NurbsConvert ).
Add the face in your HLR algo.
end loop on your faces
Compute the HLR
With this method, you should get a good result.
The only problem is that it is much slower than without converting to BSpline, but at least it's working fine ( I think ).
HTH.
Stephane
http://www.exotk.org
Mon, 03/04/2002 - 14:21
HI,
Thanks a lot for your help.
David