some problems about extruding

hi all:
i have some problems about extruding.When i analsing the code of extruding ,my teacher tells me to learn BrepOffsetAPI,but i don't know BrepOffsetAPI and BrepPrimAPI which is the correct class to extruding.thank for your help!

Rob Bachrach's picture

It depends on your needs. If you are extruding a shape along a straight line, the easiest solution is BRepPrimAPI (see section 4.2 of the Modeling Algorithms User's Guide). If you are extruding a shape along a non-linear trajectory (or spine), you would probably use BRepOffsetAPI_MakePipe.