Thu, 12/22/2011 - 18:19
Forums:
Hello,
the following code worked with Open Cascade 6.3:
Handle(Geom_RectangularTrimmedSurface) aussenwand = GC_MakeTrimmedCylinder(axe_ric, radiusOuter, laenge);
TopoDS_Face awand = BRepBuilderAPI_MakeFace(aussenwand);
But now with OCC 6.5.2 I get a compilation error:
error C2440: '
Am I wrong or is there a bug???
Thanks,
Sammy
Thu, 12/22/2011 - 18:59
Make sure you specify all input parameters to BRepBuilderAPI_MakeFace. Since 6.5.2 it accepts a tolerance value as a second parameter.
Thu, 12/22/2011 - 19:39
Thank you. Just a minute ago I changed the code to *makeShell instead of *makeFace. Then it worked...
Thanks!
Fri, 12/23/2011 - 07:07
Hello,
I had the similar problem, Why there is no default tolerance value ? and are there good suggestion to set that value ?
csv
Fri, 12/23/2011 - 20:42
For those surface which are created by OCCT the Precision::Confusion is Ok. If you have your surface translated from some external CAD file, it is better to use the tolerance value coming from that file.