Rotate a TopoDS_Shape...

How do rotate a TopoDS_Shape for e.g. 1.57 radians...?

Rob Bachrach's picture

Create a gp_Trsf and use the SetRotation member to apply a rotation of 1.57 radians about the appropriate axis. Then, use BRepBuilderAPI_Transform to apply the transformation to your shape. Note that the rotation, by default, will happen about the origin (0,0,0).

d00_ape's picture

Many thanks!!