Archived issue #0033904
Issue with cutting of 1 cylinder by another one
Description
Hello,
Cutting an cylinder with anoter one to get a thickness doesn't work with a thickness < 4e-5.
Here I attached 2 cases : thickness of 3e-5 and thickness of 4e-5.
Cutting an cylinder with anoter one to get a thickness doesn't work with a thickness < 4e-5.
Here I attached 2 cases : thickness of 3e-5 and thickness of 4e-5.
Steps to reproduce
// Parameters
const gp_Ax2 lTransform ; // Default value
double lThickness = 3.0e-5 ;
// First cylinder
TopoDS_Shape lShape1 = BRepPrimAPI_MakeCylinder(lTransform, 200.0, 100.0, 5.0).Shape() ;
// Second cylinder, cutting the first one
TopoDS_Shape lShape2 = BRepPrimAPI_MakeCylinder(lTransform, 200.0 - lThickness, 100.0, 5.0).Shape() ;
// Perform hollowing
TopoDS_Shape lShapeResult = BRepAlgoAPI_Cut(lShape1, lShape2).Shape() ;
// Save the result
BRepTools::Write(lShapeResult, "cylinder.brep") ;
const gp_Ax2 lTransform ; // Default value
double lThickness = 3.0e-5 ;
// First cylinder
TopoDS_Shape lShape1 = BRepPrimAPI_MakeCylinder(lTransform, 200.0, 100.0, 5.0).Shape() ;
// Second cylinder, cutting the first one
TopoDS_Shape lShape2 = BRepPrimAPI_MakeCylinder(lTransform, 200.0 - lThickness, 100.0, 5.0).Shape() ;
// Perform hollowing
TopoDS_Shape lShapeResult = BRepAlgoAPI_Cut(lShape1, lShape2).Shape() ;
// Save the result
BRepTools::Write(lShapeResult, "cylinder.brep") ;
Public activity
1 archived note
Participants are labeled by their role within this record.
Examples in attached files
Attachment 1 (BREP) (3,714 bytes)
Attachment 4 (PNG) (64,006 bytes)
Attachment 2 (PNG) (54,143 bytes)
Attachment 3 (BREP) (3,699 bytes)