I am trying to figure out how to get Open Cascade to return the edge, wire, and/or face representing the portion of an infinite cylinder (Geom_CylindricalSurface) that sits between two infinite planes (Geom_Plane).
I have managed to construct the top and bottom caps of the cylinder as Faces. The following snippet shows the construction of the bottom cap face of the cylinder.:
Handle(AIS_Shape) cylShape = new AIS_Shape(TopoDS_Face());
I can similarly get the bottom cap constructed. The trouble I am have is constructing the edge/wire/face of the body of the cylinder which is the portion of the infinite Geom_CylindricalSurface that lies between the two Geom_Planes.
Does anyone know how to use the various Open Cascade utilities to return the edge, wire, and/or face representing the portion of the infinite cylinder between two planes? Or alternatively how to construct the cylindrical body from the two edges/wires of the top and bottom faces of the cylinder?
Here are my plane and cylinder definitions:
* Creates a plane using the form based on the general plane equation:
Handle(Geom_Plane) geoPln02 = new Geom_Plane(0.0,0.0,1.0,10.0);
Handle(Geom_Plane) geoPln03 = new Geom_Plane(0.0,0.0,1.0,-10.0);
Handle(AIS_Shape) plnShape2 = new AIS_Shape(TopoDS_Face());
Handle(Geom_CylindricalSurface) simpCyl = new Geom_CylindricalSurface(cylAx3, 5.0); //Creates infinite cylindrical surface
Thanks for any help you can provide!