How-To: Using the HOOPS 3D Part Viewer
The HOOPS 3D Part Viewer (3DPV) is a Windows MFC application built on top of the HOOPS/3dGS and HOOPS/MVO components. Use the 3D Part Viewer which you can build as a sample application, for troubleshooting and creating reproducible testcases for support (i.e. independent of your application code).
The 3DPV has a CSolidHoopsView
class (cf. CSolidHoopsView.cpp) where m_pHView
is a member. This is a pointer to an HBaseView
object (cf. https://docs.techsoft3d.com/3df/latest/tech_overview/mvo_technical_overview.html#hbaseview ).
The CSolidHoopsView
class has methods call OnExtraSlotN where N = {1,2,3,4,5}. The code I provided uses this mechanism.
void CSolidHoopsView::OnExtraSlot1()
{
HC_Open_Segment_By_Key(m_pHView->GetModelKey());
When using the 3DPV, you can choose “Slot N” from the DEBUG menu to execute this code.
The linked documentation provides many details not duplicated here.
For further instructions, check out our forum post.