displaying aplane

hi,
this is the code i'm using to display a plane.but it says AIS plane has no constructors.can I know whats the mistake

gp_Pnt P( 0., 0., 0.);
gp_Dir V(0., 0., 1.0);
Geom_Plane Q(P,V);

Handle(Geom_Plane) Q = new Geom_Plane(Q);
Handle(AIS_Plane) anAISPlane = new AIS_Plane(Q);
myAISContext->Display(anAISPlane);

Rob Bachrach's picture

Did you include AIS_Plane.hxx?

Divya's picture

thanks Rob!that worked!