I find extrudecurvestraight function just can extrude a brep in one direction,Is there a C++ function can extrude a brep in both side?
Have you tried ON_BrepExtrudeFace? You may also want to consider using extrusion objects ON_Extrusion for this
thanks for you answer.
but I think N_BrepExtrudeFace and ON_Extrusion are not my need .
I write this function myself like that:
first I using extrudecurvestraight function extrude two breps
(using the same curve ,surmise one brep extrude in v direction ,another brep extrude in -v direction)
then I using rhinojoinbreps jointhe two breps
Just temporarily transform the curve before performing the extrusion with RhinoExtrudeCurveStraight
stevebaer:
but how to transform the curve ,can you say cleary?
Thanks
What I do is:
- get the extrusion vector - not unified, as if you were going to
extrude only one side - invert the vector
- translate the curve to be extruded in the inverted vector direction
- scale the extrusion vector by 2 and use that to extrude.
–Mitch
thanks,that a good idea