the code of extrude

hi all:
i am studing the opencascade for this term.But there are some problems with me,about the code of extrude transforming,which betweens in 2d and 3d.thank you for your help.

Rob Bachrach's picture

If I understand your questions correctly, you are looking for the OCC equivalent of extruding a planar shape with a specified depth. OCC refers to this as a prism. You should consider BRepSweep_Prism and BRepPrimAPI_MakePrism.

chenyu's picture

thanks!I must use these codes to realize the operation of extruding.I have learned some class of BREP,but i don't know how to use them to compile in visual