08-04-2008 02:28 AM
i am now using ACIS and HOOPS as my developing tools.After building a model with ACIS,the model is rendered by HOOPS.Now the problem is,after a model such as a cuboid is rendered and displayed,how can i select a single face or edge instead of the whole object by mouse clicking and change its rendering attributes and match it with FACE or EDGE entity in ACIS.Thanks for help!
10-12-2008 07:10 PM
First, you should overload HOpSelectAperture class to select a face or an edge. Then make sure that you used HC_Set_Selectability("everything = off, faces =on") before selected a face or an edge.
Finally,use "HBaseView::SetOperator()" function to select a face or an edge.
10-15-2008 03:47 AM
class HOpMySelectAperture : public HOpSelectAperture
2.Then, added the following codes to the responded function.
HC_Set_Selectability("everything = off, faces =on");
HOpMySelectAperture* pOperator = new HOpMySelectAperture(m_pHSolidView,0,1);