
Thu, 03/25/2021 - 10:19
Forums:
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:
Mon, 03/29/2021 - 12:02
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.
Tue, 04/20/2021 - 16:13
after few days work,I found the bug .
view->ChangeRenderingParams().Method = Graphic3d_RM_RAYTRACING;
but why it happened when I set this method?
Tue, 04/20/2021 - 18:19
Because Ray-Tracing currently doesn't implement Clipping Planes support.