display BSplineSurface

Hi,

I create a BSpineSurface and display it. But i don't known how to shading it.

the code is bellow:

Handle(Geom_BSplineSurface) pBSplSurface = ...;
TopoDS_Face aFace = BRepBuilderAPI_MakeFace(pBSplSurface);
TopoDS_Shape aShape = new AIS_Shape(aFace);
myAISContext->Display(aShape, false);

Any advice about how to shading the surface is wellcome.

Regards,

Bai Xiaoliang

liangluming's picture

myAISContext->SetDisplayMode(aShape, AIS_Shaded);