ClipPlane does not work With OCC7.5

Hi deer! 

I am new to OCCT. I want to use Graphic3d_ClipPlane  to  clip 3D model. and my code as follow:

void WidgetClipPlanes::setPlaneOn(Handle(Graphic3d_ClipPlane) &clipPlane, bool on)
{
	
	clipPlane->SetOn(on);
	...
	m_view->AddClipPlane(clipPlane);
    m_view->Redraw();

	
	
}

but  result  is unexpected . the line  of the model  in the picture[clip_plane.png ] shows that this model has been sliced,but the whole model has been showed. what should I do?

Attachments: 
Kirill Gavrilov's picture

It cannot be deduced from shared code snippet, but I guess there is something wrong in clipping plane definition (wrong location / orientation) or something specific in shape displaying. Sharing more code could help pointing out what might be wrong.