How-to: Render IFC model in the same way as Rendering Modes in HOOPS Demo Viewer

In HOOPS Demo Viewer, faces, edges and lines visibility is set in addition to HPS::Rendering::Mode.

image-20210420-045941

Tessellated Mode

GetCanvas().GetAttachedLayout().GetAttachedView().SetRenderingMode(HPS::Rendering::Mode::Flat);
HPS::VisibilityKit visibility;
visibility.SetEdges(true).SetFaces(true).SetHardEdges(true).SetPerimeterEdges(true);
GetCanvas().GetFrontView().GetSegmentKey().SetVisibility(visibility);

Wireframe Mode

GetCanvas().GetAttachedLayout().GetAttachedView().SetRenderingMode(HPS::Rendering::Mode::Wireframe);	
HPS::VisibilityKit visibility;
visibility.SetEdges(false).SetFaces(false).SetHardEdges(true).SetPerimeterEdges(true);
GetCanvas().GetFrontView().GetSegmentKey().SetVisibility(visibility);

1 Like